All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
SurgSim::Physics::MlcpMapping< T > Class Template Reference

#include <SurgSim/Physics/MlcpMapping.h>

Collaboration diagram for SurgSim::Physics::MlcpMapping< T >:
Collaboration graph
[legend]

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

template<class T>
SurgSim::Physics::MlcpMapping< T >::MlcpMapping ( )
inline

Member Function Documentation

template<class T>
void SurgSim::Physics::MlcpMapping< T >::clear ( )
inline

Clear the mapping.

template<class T>
ptrdiff_t SurgSim::Physics::MlcpMapping< T >::getValue ( const T *  key) const
inline

Gets the value from a given key.

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

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: