Cortex  10.0.0-a4
Public Types | Public Member Functions | List of all members
IECore::DimensionTraits< N, T > Struct Template Reference

#include <DimensionTraits.h>

Public Types

typedef void VectorType
 
typedef void BoxType
 
typedef void PlaneType
 
typedef void LineSegmentType
 

Public Member Functions

 BOOST_STATIC_ASSERT (sizeof(T)==0)
 

Detailed Description

template<int N, typename T = void>
struct IECore::DimensionTraits< N, T >

A simple traits class that can be used to derive appropriate types for storing vectors, boxes, etc, in, given the dimension "N" of the space and numeric base type "T".

For example, DimensionTraits< 3, float >::VectorType is defined to be Imath::V3f

Any combinations which are meaningless (e.g. a 1-d box) are defined as void.


The documentation for this struct was generated from the following file: