Blender V2.61 - r43446
Public Types

Traits< T > Struct Template Reference

Traits are traits classes to determine the type of a derivative of another type. More...

#include <traits.h>

List of all members.

Public Types

typedef T valueType
typedef T derivType

Detailed Description

template<typename T>
struct Traits< T >

Traits are traits classes to determine the type of a derivative of another type.

For geometric objects the "geometric" derivative is chosen. For example the derivative of a Rotation matrix is NOT a 3x3 matrix containing the derivative of the elements of a rotation matrix. The derivative of the rotation matrix is a Vector corresponding the rotational velocity. Mostly used in template classes and routines to derive a correct type when needed.

You can see this as a compile-time lookuptable to find the type of the derivative.

Example

	Rotation R;
    Traits<Rotation> dR;
   

Definition at line 41 of file traits.h.


Member Typedef Documentation

template<typename T >
typedef T Traits< T >::derivType

Definition at line 43 of file traits.h.

template<typename T >
typedef T Traits< T >::valueType

Definition at line 42 of file traits.h.


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