#include <FieldValues.h>
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. |
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.
Definition at line 43 of file FieldValues.h.
FieldValues::FieldValues | ( | TableImplPtr | table | ) |
Constuct a new Values bucket for fields of this specific table.
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.