Template Numerical Library version\ main:bb09b17
Loading...
Searching...
No Matches
TNL::Containers::IndexedMap< Value, Index, Key > Class Template Reference
Collaboration diagram for TNL::Containers::IndexedMap< Value, Index, Key >:

Classes

struct  DataWithIndex
 

Public Types

using IndexType = Index
 
using KeyType = Key
 
using ValueType = Value
 

Public Member Functions

bool find (const ValueType &data, IndexType &index) const
 
Value & getElement (KeyType key)
 
const Value & getElement (KeyType key) const
 
IndexType getSize () const
 
IndexType insert (const ValueType &data)
 
void print (std::ostream &str) const
 
void reset ()
 
template<typename ArrayType >
void toArray (ArrayType &array) const
 

Protected Types

using STDMapIteratorType = typename STDMapType::const_iterator
 
using STDMapType = std::map< Key, DataWithIndex >
 
using STDMapValueType = typename STDMapType::value_type
 

Protected Attributes

STDMapType map
 

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