#include <IFidTable.H>
Public Member Functions | |
IFidTable () | |
Creates an empty table. | |
~IFidTable () | |
Destructor (not virtual). | |
int | add (const IFid &a_id) |
const IFid & | operator[] (int a_index) const |
Retrieves the identifier corresponding to the given index. | |
int | size () const |
Returns the number of IDs in the table. | |
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 |
IFidTable::IFidTable | ( | ) | [inline] |
Creates an empty table.
IFidTable::~IFidTable | ( | ) | [inline] |
Destructor (not virtual).
IFidTable::IFidTable | ( | const IFidTable & | ) | [private] |
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] |
int IFidTable::linearSize | ( | void | ) | const [inline] |
void IFidTable::linearIn | ( | const void *const | inBuf | ) | [inline] |
void IFidTable::linearOut | ( | void *const | a_outBuf | ) | const [inline] |
Vector<IFid> IFidTable::m_ids [private] |
Referenced by add(), linearIn(), linearOut(), linearSize(), operator[](), and size().