Public Member Functions

SimpleTable< ROW, DIMS > Class Template Reference

Table with one index for rows with a single primary key. More...

#include <rdb/rdb.h>

Inherits RDB::TableBase< ROW, DIMS >.

Inherited by ChildTable< ROW, DIMS >.

List of all members.

Public Member Functions


Detailed Description

template<class ROW, int DIMS = 1>
class RDB::SimpleTable< ROW, DIMS >

Table with one index for rows with a single primary key.


Constructor & Destructor Documentation

SimpleTable (  )  [inline]

Default constructor.


Member Function Documentation

void initIndex ( int  size,
typename Base::KeyMethod  keyMethod 
) [inline]

Initialize the primary index.

Parameters:
size Size of the hash table to use.
keyMethod Pointer to method returning the primary key.
UniqueIndex<ROW> index (  )  [inline]

Return the primary index.

UniqueConstIndex<ROW> index (  )  const [inline]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

ROW* find ( int  key  )  [inline]

Find the row with the given primary key.

const ROW* find ( int  key  )  const [inline]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void remove ( int  key  )  [inline]

Remove the row with the given primary key.