Traits< T > Struct Template Reference

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

#include <traits.h>

Public Types

typedef T derivType
 
typedef T valueType
 

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;

Member Typedef Documentation

◆ derivType

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

◆ valueType

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

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