Chombo + EB  3.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IFidTable Class Reference

#include <IFidTable.H>

Public Member Functions

 IFidTable ()
 Creates an empty table. More...
 
 ~IFidTable ()
 Destructor (not virtual). More...
 
int add (const IFid &a_id)
 
const IFidoperator[] (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 &)
 
IFidTableoperator= (const IFidTable &)
 

Private Attributes

Vector< IFidm_ids
 

Detailed Description

This class maintains a mapping between integer indices and IFids for a given EB index space.

Constructor & Destructor Documentation

IFidTable::IFidTable ( )
inline

Creates an empty table.

IFidTable::~IFidTable ( )
inline

Destructor (not virtual).

IFidTable::IFidTable ( const IFidTable )
private

Member Function Documentation

int IFidTable::add ( const IFid a_id)
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().

const IFid& IFidTable::operator[] ( int  a_index) const
inline

Retrieves the identifier corresponding to the given index.

References CH_assert, m_ids, and Vector< T >::size().

int IFidTable::size ( ) const
inline

Returns the number of IDs in the table.

References m_ids, and Vector< T >::size().

int IFidTable::linearSize ( void  ) const
inline

References linearListSize(), and m_ids.

Referenced by linearSize().

void IFidTable::linearIn ( const void *const  inBuf)
inline

References linearListIn(), and m_ids.

Referenced by linearIn().

void IFidTable::linearOut ( void *const  a_outBuf) const
inline

References linearListOut(), and m_ids.

Referenced by linearOut().

IFidTable& IFidTable::operator= ( const IFidTable )
private

Member Data Documentation

Vector<IFid> IFidTable::m_ids
private

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