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 |

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;

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