Alien  1.3.0
Developer documentation
Loading...
Searching...
No Matches
Alien::VMap< IndexT, DataT > Class Template Reference

#include <core/alien/utils/VMap.h>

Collaboration diagram for Alien::VMap< IndexT, DataT >:

Classes

class  iterator
class  const_iterator

Public Member Functions

 VMap (Integer first_capacity=4)
 VMap (const VMap &vmap)
VMap & operator= (const VMap &vmap)
DataT & operator[] (IndexT index)
iterator find (IndexT index)
const_iterator find (IndexT index) const
std::pair< iterator, bool > insert (IndexT index)
const_iterator begin () const
const_iterator end () const
iterator begin ()
iterator end ()
Integer size () const

Static Private Member Functions

static Integer new_capacity (Integer capacity)

Private Attributes

Integer m_size
Integer m_capacity
IndexT * m_indexes
DataT * m_data
void * m_memory_pool

Detailed Description

template<typename IndexT, typename DataT>
class Alien::VMap< IndexT, DataT >

Tableau associatif pour des clefs et données POD

Definition at line 66 of file VMap.h.

Constructor & Destructor Documentation

◆ VMap() [1/2]

template<typename IndexT, typename DataT>
Alien::VMap< IndexT, DataT >::VMap ( Integer first_capacity = 4)
explicit

Definition at line 174 of file VMap.h.

◆ ~VMap()

template<typename IndexT, typename DataT>
Alien::VMap< IndexT, DataT >::~VMap ( )
virtual

Definition at line 217 of file VMap.h.

◆ VMap() [2/2]

template<typename IndexT, typename DataT>
Alien::VMap< IndexT, DataT >::VMap ( const VMap< IndexT, DataT > & vmap)

Definition at line 186 of file VMap.h.

Member Function Documentation

◆ begin() [1/2]

template<typename IndexT, typename DataT>
iterator Alien::VMap< IndexT, DataT >::begin ( )
inline

Definition at line 155 of file VMap.h.

◆ begin() [2/2]

template<typename IndexT, typename DataT>
const_iterator Alien::VMap< IndexT, DataT >::begin ( ) const
inline

Definition at line 151 of file VMap.h.

◆ end() [1/2]

template<typename IndexT, typename DataT>
iterator Alien::VMap< IndexT, DataT >::end ( )
inline

Definition at line 157 of file VMap.h.

◆ end() [2/2]

template<typename IndexT, typename DataT>
const_iterator Alien::VMap< IndexT, DataT >::end ( ) const
inline

Definition at line 153 of file VMap.h.

◆ find() [1/2]

template<typename IndexT, typename DataT>
VMap< IndexT, DataT >::iterator Alien::VMap< IndexT, DataT >::find ( IndexT index)

Definition at line 235 of file VMap.h.

◆ find() [2/2]

template<typename IndexT, typename DataT>
VMap< IndexT, DataT >::const_iterator Alien::VMap< IndexT, DataT >::find ( IndexT index) const

Definition at line 249 of file VMap.h.

◆ insert()

template<typename IndexT, typename DataT>
std::pair< typename VMap< IndexT, DataT >::iterator, bool > Alien::VMap< IndexT, DataT >::insert ( IndexT index)

Definition at line 263 of file VMap.h.

◆ new_capacity()

template<typename IndexT, typename DataT>
Integer Alien::VMap< IndexT, DataT >::new_capacity ( Integer capacity)
staticprivate

Definition at line 327 of file VMap.h.

◆ operator=()

template<typename IndexT, typename DataT>
VMap< IndexT, DataT > & Alien::VMap< IndexT, DataT >::operator= ( const VMap< IndexT, DataT > & vmap)

Definition at line 201 of file VMap.h.

◆ operator[]()

template<typename IndexT, typename DataT>
DataT & Alien::VMap< IndexT, DataT >::operator[] ( IndexT index)

Definition at line 226 of file VMap.h.

◆ size()

template<typename IndexT, typename DataT>
Integer Alien::VMap< IndexT, DataT >::size ( ) const
inlinenodiscard

Definition at line 159 of file VMap.h.

Member Data Documentation

◆ m_capacity

template<typename IndexT, typename DataT>
Integer Alien::VMap< IndexT, DataT >::m_capacity
private

Definition at line 162 of file VMap.h.

◆ m_data

template<typename IndexT, typename DataT>
DataT* Alien::VMap< IndexT, DataT >::m_data
private

Definition at line 164 of file VMap.h.

◆ m_indexes

template<typename IndexT, typename DataT>
IndexT* Alien::VMap< IndexT, DataT >::m_indexes
private

Definition at line 163 of file VMap.h.

◆ m_memory_pool

template<typename IndexT, typename DataT>
void* Alien::VMap< IndexT, DataT >::m_memory_pool
private

Definition at line 165 of file VMap.h.

◆ m_size

template<typename IndexT, typename DataT>
Integer Alien::VMap< IndexT, DataT >::m_size
private

Definition at line 162 of file VMap.h.


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