TableImpl Class Reference

This class represents a generated (concrete version of a) TableDef. More...

#include <TableImpl.h>

Inheritance diagram for TableImpl:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 TableImpl (cstring name)
 Constructs a new TableImpl based on this specific table.
virtual ~TableImpl ()
 Destructor, a noop.
cstring getName () const
 Returns the name of this table.
Strings tableList (SelectionMaskPtr mask)
 Returns a list of all rows in this table after applying mask.
FieldImplVector::const_iterator begin () const
 Returns an iterator to the first element of the FieldImpl's of this table.
FieldImplVector::const_iterator end () const
 Return the 'end' iterator of the FieldImpl's of this table.
size_t size () const
 Returns the size of the FieldImpl's of this table.
size_t primarykeysize () const
 Retursn the amount of primary keys this table has.
KeyImplPtr firstkey () const
 Returns the first key of this table, keysize is asserted to be 1.
virtual void Initialize ()
 Initializes the table's fields.

Protected Member Functions

void updateFieldCount ()
 Updates the fieldcount.

Protected Attributes

std::string m_name
 The name of this table.
FieldImplVector m_fields
 The fields generated for this table.
size_t m_primarykeysize
 The amount of primary keys for this table.


Detailed Description

This class represents a generated (concrete version of a) TableDef.

This class should not be instantiated manually. Instead, the generated ones from TableImpls should be used.

See also:
TableImpls

TableDef

Table

Definition at line 41 of file TableImpl.h.


Constructor & Destructor Documentation

TableImpl::TableImpl ( cstring  name  ) 

Constructs a new TableImpl based on this specific table.

virtual TableImpl::~TableImpl (  )  [inline, virtual]

Destructor, a noop.

Definition at line 48 of file TableImpl.h.


Member Function Documentation

cstring TableImpl::getName (  )  const

Returns the name of this table.

Strings TableImpl::tableList ( SelectionMaskPtr  mask  ) 

Returns a list of all rows in this table after applying mask.

Parameters:
mask The mask to apply, an 'empty' (not NULL!) mask is allowed.
Returns:
The first entry is a header, the ones after that are the rows.

FieldImplVector::const_iterator TableImpl::begin (  )  const [inline]

Returns an iterator to the first element of the FieldImpl's of this table.

Definition at line 65 of file TableImpl.h.

FieldImplVector::const_iterator TableImpl::end (  )  const [inline]

Return the 'end' iterator of the FieldImpl's of this table.

Definition at line 68 of file TableImpl.h.

size_t TableImpl::size (  )  const [inline]

Returns the size of the FieldImpl's of this table.

Definition at line 71 of file TableImpl.h.

size_t TableImpl::primarykeysize (  )  const [inline]

Retursn the amount of primary keys this table has.

Definition at line 74 of file TableImpl.h.

KeyImplPtr TableImpl::firstkey (  )  const

Returns the first key of this table, keysize is asserted to be 1.

virtual void TableImpl::Initialize (  )  [inline, virtual]

Initializes the table's fields.

Definition at line 81 of file TableImpl.h.

void TableImpl::updateFieldCount (  )  [protected]

Updates the fieldcount.


Member Data Documentation

std::string TableImpl::m_name [protected]

The name of this table.

Definition at line 87 of file TableImpl.h.

FieldImplVector TableImpl::m_fields [protected]

The fields generated for this table.

Definition at line 88 of file TableImpl.h.

size_t TableImpl::m_primarykeysize [protected]

The amount of primary keys for this table.

Definition at line 89 of file TableImpl.h.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo