Chombo + EB
3.0
|
#include <IFidTable.H>
Public Member Functions | |
IFidTable () | |
Creates an empty table. More... | |
~IFidTable () | |
Destructor (not virtual). More... | |
int | add (const IFid &a_id) |
const IFid & | operator[] (int a_index) const |
Retrieves the identifier corresponding to the given index. More... | |
int | size () const |
Returns the number of IDs in the table. More... | |
int | linearSize () const |
void | linearIn (const void *const inBuf) |
void | linearOut (void *const a_outBuf) const |
Private Member Functions | |
IFidTable (const IFidTable &) | |
IFidTable & | operator= (const IFidTable &) |
Private Attributes | |
Vector< IFid > | m_ids |
This class maintains a mapping between integer indices and IFids for a given EB index space.
|
inline |
Creates an empty table.
|
inline |
Destructor (not virtual).
|
private |
|
inline |
Adds the given IFid to the table, returning the index at which it may be subsequently retrieved. If the IFid already exists in the table, the table is unaltered and the index of the existing entry is returned.
References m_ids, Vector< T >::push_back(), Vector< T >::size(), and Vector< T >::stdVector().
|
inline |
Retrieves the identifier corresponding to the given index.
References CH_assert, m_ids, and Vector< T >::size().
|
inline |
Returns the number of IDs in the table.
References m_ids, and Vector< T >::size().
|
inline |
References linearListSize(), and m_ids.
Referenced by linearSize().
|
inline |
References linearListIn(), and m_ids.
Referenced by linearIn().
|
inline |
References linearListOut(), and m_ids.
Referenced by linearOut().
Referenced by add(), linearIn(), linearOut(), linearSize(), operator[](), and size().