Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data Struct Reference
Collaboration diagram for Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data:

Public Member Functions

Data * next ()
void setNext (Data *anext)
KeyTypeConstRef key ()
const ValueTypevalue () const
ValueTypevalue ()
void setValue (const ValueType &avalue)
 Modifies the value of the instance.
void setKey (const KeyType &new_key)
 Changes the value of the key.

Public Attributes

KeyTypeValue m_key
 Search key.
ValueType m_value
 Element value.
Data * m_next = nullptr

Detailed Description

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
struct Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data

Definition at line 64 of file HashTableMap.h.

Constructor & Destructor Documentation

◆ Data()

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::Data ( )
inline

Definition at line 68 of file HashTableMap.h.

Member Function Documentation

◆ key()

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
KeyTypeConstRef Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::key ( )
inline

Definition at line 77 of file HashTableMap.h.

◆ next()

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
Data * Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::next ( )
inline

Definition at line 75 of file HashTableMap.h.

◆ setKey()

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
void Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::setKey ( const KeyType & new_key)
inline

Changes the value of the key.

After changing the value of one or more keys, a rehash() must be performed.

Definition at line 87 of file HashTableMap.h.

References m_key.

◆ setNext()

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
void Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::setNext ( Data * anext)
inline

Definition at line 76 of file HashTableMap.h.

◆ setValue()

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
void Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::setValue ( const ValueType & avalue)
inline

Modifies the value of the instance.

Definition at line 81 of file HashTableMap.h.

References m_value.

◆ value() [1/2]

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
ValueType & Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::value ( )
inline

Definition at line 79 of file HashTableMap.h.

◆ value() [2/2]

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
const ValueType & Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::value ( ) const
inline

Definition at line 78 of file HashTableMap.h.

Member Data Documentation

◆ m_key

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
KeyTypeValue Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::m_key

Search key.

Definition at line 94 of file HashTableMap.h.

Referenced by setKey().

◆ m_next

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
Data* Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::m_next = nullptr

Definition at line 96 of file HashTableMap.h.

◆ m_value

template<typename KeyType, typename ValueType, typename KeyTraitsType = HashTraitsT<KeyType>>
ValueType Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::Data::m_value

Element value.

Definition at line 95 of file HashTableMap.h.

Referenced by setValue().


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