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

#include <VectorTraits.h>

Public Types

typedef T::BaseType BaseType
 The type of the components of the vector.
 

Static Public Member Functions

static unsigned int dimensions ()
 
static BaseType get (const T &v, unsigned int i)
 
static void set (T &v, unsigned int i, BaseType x)
 

Detailed Description

template<typename T>
struct IECore::VectorTraits< T >

The VectorTraits struct provides a means of using different vector classes within templated code. It provides the basis for the functions in VectorOps.h, which provide common vector operations using the underlying VectorTraits classes. The default implementation works for the ImathVec types out of the box. For any other types you may need to specialise it.


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