AGX Dynamics  2.37.3.2
agx::CellTable< CellIdT, HashT > Class Template Reference

#include <CellTable.h>

Classes

class  Bucket
 
class  template_iterator
 

Public Types

typedef template_iterator< const CellTable > const_iterator
 
typedef template_iterator< CellTable > iterator
 Iterators. More...
 

Public Member Functions

 CellTable (agxData::Buffer *cellIdBuffer)
 
 ~CellTable ()
 
iterator begin ()
 Iterator to first element in hash set. More...
 
const_iterator begin () const
 
bool contains (const CellIdT &cellId) const
 
iterator end ()
 Iterator marking end of hash set. More...
 
const_iterator end () const
 
void erase (const CellIdT &cellId)
 
UInt32 find (const CellIdT &cellId) const
 
void insert (const CellIdT &cellId, UInt32 cellIndex)
 
void updateWithReordering (const agxData::Array< UInt32 > &sortedIndices)
 

Detailed Description

template<typename CellIdT, typename HashT = HashFn<CellIdT>>
class agx::CellTable< CellIdT, HashT >

Definition at line 28 of file CellTable.h.

Member Typedef Documentation

◆ const_iterator

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
typedef template_iterator< const CellTable > agx::CellTable< CellIdT, HashT >::const_iterator

Definition at line 168 of file CellTable.h.

◆ iterator

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
typedef template_iterator< CellTable > agx::CellTable< CellIdT, HashT >::iterator

Iterators.

Definition at line 167 of file CellTable.h.

Constructor & Destructor Documentation

◆ CellTable()

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
agx::CellTable< CellIdT, HashT >::CellTable ( agxData::Buffer *  cellIdBuffer)
inline

Definition at line 172 of file CellTable.h.

◆ ~CellTable()

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
agx::CellTable< CellIdT, HashT >::~CellTable ( )
inline

Definition at line 181 of file CellTable.h.

References m_capacity.

Member Function Documentation

◆ begin() [1/2]

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
iterator agx::CellTable< CellIdT, HashT >::begin ( )
inline

Iterator to first element in hash set.

Definition at line 299 of file CellTable.h.

◆ begin() [2/2]

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
const_iterator agx::CellTable< CellIdT, HashT >::begin ( ) const
inline

Definition at line 302 of file CellTable.h.

◆ contains()

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
bool agx::CellTable< CellIdT, HashT >::contains ( const CellIdT &  cellId) const
inline

Definition at line 195 of file CellTable.h.

References agx::InvalidIndex.

◆ end() [1/2]

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
iterator agx::CellTable< CellIdT, HashT >::end ( )
inline

Iterator marking end of hash set.

Definition at line 309 of file CellTable.h.

References m_capacity.

◆ end() [2/2]

◆ erase()

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
void agx::CellTable< CellIdT, HashT >::erase ( const CellIdT &  cellId)
inline

◆ find()

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
UInt32 agx::CellTable< CellIdT, HashT >::find ( const CellIdT &  cellId) const
inline

Definition at line 188 of file CellTable.h.

References agx::InvalidIndex.

◆ insert()

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
void agx::CellTable< CellIdT, HashT >::insert ( const CellIdT &  cellId,
UInt32  cellIndex 
)
inline

◆ updateWithReordering()

template<typename CellIdT , typename HashT = HashFn<CellIdT>>
void agx::CellTable< CellIdT, HashT >::updateWithReordering ( const agxData::Array< UInt32 > &  sortedIndices)
inline

Definition at line 200 of file CellTable.h.

References agx::CellTable< CellIdT, HashT >::Bucket::isValid(), and m_capacity.


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