Chombo + EB + MF  3.2
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() [1/2]

IFidTable::IFidTable ( )
inline

Creates an empty table.

◆ ~IFidTable()

IFidTable::~IFidTable ( )
inline

Destructor (not virtual).

◆ IFidTable() [2/2]

IFidTable::IFidTable ( const IFidTable )
private

Member Function Documentation

◆ add()

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().

◆ operator[]()

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().

◆ size()

int IFidTable::size ( ) const
inline

Returns the number of IDs in the table.

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

◆ linearSize()

int IFidTable::linearSize ( void  ) const
inline

References linearListSize(), and m_ids.

Referenced by linearSize().

◆ linearIn()

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

References linearListIn(), and m_ids.

Referenced by linearIn().

◆ linearOut()

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

References linearListOut(), and m_ids.

Referenced by linearOut().

◆ operator=()

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

Member Data Documentation

◆ m_ids

Vector<IFid> IFidTable::m_ids
private

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