FieldValues Class Reference

This class is a bucket for Value objects. More...

#include <FieldValues.h>

List of all members.

Public Member Functions

 FieldValues (TableImplPtr table)
 Constuct a new Values bucket for fields of this specific table.
 ~FieldValues ()
 Destructor, a noop.
TableImplPtr getTable () const
 Returns the table this Values bucket is for.
void addValue (ValuePtr key)
 Add a Value, this value is run-time asserted to be of the proper table.
void addJoinedTable (TableImplPtr joinedTable)
 Add a table from which Value's may be added.
size_t size () const
 Returns the number of added fields.
ValuePtr first () const
 Returns the first stored Value.
ValueMap::const_iterator begin () const
 Returns an iterator to the first stored value.
ValueMap::const_iterator end () const
 Returns an iterator to the 'end' iterator.
ValueMap::const_iterator find (FieldImplPtr field) const
 Returns an iterator to the result of 'find' with this specific field as argument.
ValuePtr getField (FieldImplPtr field) const
 Returns a Value for this field, asserted not to be the 'end' iterator.


Detailed Description

This class is a bucket for Value objects.

It will hold any Value objects for the table it was constructed for. Value objects cann be added through the addValue function. Also, any tables added with addJoinedTable are allowed.

See also:
FieldValue

addJoinedTable

addValue

Definition at line 43 of file FieldValues.h.


Constructor & Destructor Documentation

FieldValues::FieldValues ( TableImplPtr  table  ) 

Constuct a new Values bucket for fields of this specific table.


Member Function Documentation

TableImplPtr FieldValues::getTable (  )  const

Returns the table this Values bucket is for.

void FieldValues::addValue ( ValuePtr  key  ) 

Add a Value, this value is run-time asserted to be of the proper table.

void FieldValues::addJoinedTable ( TableImplPtr  joinedTable  ) 

Add a table from which Value's may be added.

size_t FieldValues::size (  )  const

Returns the number of added fields.

ValuePtr FieldValues::first (  )  const

Returns the first stored Value.

ValueMap::const_iterator FieldValues::begin (  )  const

Returns an iterator to the first stored value.

ValueMap::const_iterator FieldValues::end (  )  const

Returns an iterator to the 'end' iterator.

ValueMap::const_iterator FieldValues::find ( FieldImplPtr  field  )  const

Returns an iterator to the result of 'find' with this specific field as argument.

ValuePtr FieldValues::getField ( FieldImplPtr  field  )  const

Returns a Value for this field, asserted not to be the 'end' iterator.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo