Table< T > Class Template Reference

#include <Table.h>

Description

template<typename T>
class Dynacoe::Table< T >

An associative container that issues each member an ID guaranteed to be unique for the duration of the program.

Every operation is average-case constant time.

Functions

LookupID Insert (T)
 
void Remove (const LookupID &)
 
bool Query (const LookupID &)
 
T & Find (LookupID)
 
std::vector< T > List ()
 

Member Function Documentation

LookupID Insert ( item)

Adds an entry to the lookup table. A lookupID is returned.

void Remove ( const LookupID &  id)

Dissasociates an ID from an entry.

bool Query ( const LookupID &  id)

Returns whehter or not the ID is owned by this table.

T & Find ( LookupID  id)

Finds an entry based on the ID.

THe ID must be owned by the table. If it does not, the results are undefined (but usually a null object which is implementation-defined in its handling)

std::vector< T > List ( )

Returns a std::vector holding each member added.


The documentation for this class was generated from the following file:
  • /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Util/Table.h