FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Util::SecondaryMap< V, Key > Class Template Reference

Classes

struct  Slot
 

Public Member Functions

bool contains_key (const Key &key)
 
void insert (const Key &key, const V &value)
 
V & operator[] (const Key &key)
 Access Operator. More...
 
const V & operator[] (const Key &key) const
 Access Operator. More...
 

Private Attributes

std::vector< Slot_slots
 

Detailed Description

template<typename V, typename Key = SlotMapKey>
class FEAT::Util::SecondaryMap< V, Key >

Definition at line 571 of file slotmap.hpp.

Member Function Documentation

◆ contains_key()

template<typename V , typename Key = SlotMapKey>
bool FEAT::Util::SecondaryMap< V, Key >::contains_key ( const Key &  key)
inline

Definition at line 587 of file slotmap.hpp.

◆ insert()

template<typename V , typename Key = SlotMapKey>
void FEAT::Util::SecondaryMap< V, Key >::insert ( const Key &  key,
const V &  value 
)
inline

Definition at line 574 of file slotmap.hpp.

◆ operator[]() [1/2]

template<typename V , typename Key = SlotMapKey>
V & FEAT::Util::SecondaryMap< V, Key >::operator[] ( const Key &  key)
inline

Access Operator.

Parameters
[in]keyThe key to retrieve
Returns
A reference to the data pointed to by the key

Aborts if the given key is not valid.

Definition at line 618 of file slotmap.hpp.

References ASSERTM.

◆ operator[]() [2/2]

template<typename V , typename Key = SlotMapKey>
const V & FEAT::Util::SecondaryMap< V, Key >::operator[] ( const Key &  key) const
inline

Access Operator.

Parameters
[in]keyThe key to retrieve
Returns
A reference to the data pointed to by the key

Aborts if the given key is not valid.

Definition at line 601 of file slotmap.hpp.

References ASSERTM.

Member Data Documentation

◆ _slots

template<typename V , typename Key = SlotMapKey>
std::vector<Slot> FEAT::Util::SecondaryMap< V, Key >::_slots
private

Definition at line 641 of file slotmap.hpp.


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