SurgSim::Physics::MlcpMapping< T > Class Template Reference

`#include <SurgSim/Physics/MlcpMapping.h>`

## Public Member Functions

| MlcpMapping ()
void | clear ()
| Clear the mapping. More...
void | setValue (const T *key, size_t value)
| Sets the key/value (add an entry if the key is not found, change the value otherwise) More...
ptrdiff_t | getValue (const T *key) const
| Gets the value from a given key. More...

## Private Attributes

std::unordered_map< const T *, ptrdiff_t > | m_indexMapping
| The index mapping data structure. More...

## Constructor & Destructor Documentation

## MlcpMapping()

template<class T>

SurgSim::Physics::MlcpMapping< T >::MlcpMapping | ( |  | ) |

inline

## Member Function Documentation

## clear()

template<class T>

void SurgSim::Physics::MlcpMapping< T >::clear | ( |  | ) |

inline

Clear the mapping.

## getValue()

template<class T>

ptrdiff_t SurgSim::Physics::MlcpMapping< T >::getValue | ( | const T * | key | ) | const

inline

Gets the value from a given key.

## setValue()

template<class T>

void SurgSim::Physics::MlcpMapping< T >::setValue | ( | const T * | key,
|  | size_t | value
| ) |  |

inline

Sets the key/value (add an entry if the key is not found, change the value otherwise)

## Member Data Documentation

## m_indexMapping

template<class T>

std::unordered_map<const T*, ptrdiff_t> SurgSim::Physics::MlcpMapping< T >::m_indexMapping

private

The index mapping data structure.

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

- SurgSim/Physics/MlcpMapping.h