![]() |
VR-Forces 4.10 Class Documentation
|
a class representing a row of data from a table. More...
Public Member Functions | |
| DtVpfRow (const DtVpfRow &row) | |
| Copy constructor is private to prevent copying. More... | |
| DtVpfRow & | operator= (const DtVpfRow &row) |
| Assignment operator is private to prevent copying. More... | |
| DtVpfRow (DtVpfTable *table) | |
| Constructor takes the table that this column belongs to. More... | |
| virtual | ~DtVpfRow () |
| Destructor. More... | |
| virtual bool | loadRow (int row) |
| loads this row with data from the columns at the given index More... | |
| virtual const DtVpfTable * | table () const |
| returns the table that owns this row More... | |
| virtual const DtVpfData & | operator[] (const unsigned int data) const |
| allows indexed access to the elements of the row More... | |
| virtual int | size () const |
| returns the number of elements in this row More... | |
| virtual bool | hasField (const DtString &field_name) const |
| determines if the row has the named field More... | |
| virtual const DtVpfIntData * | getIntField (const DtString &field) const |
| Data specific type of data access. More... | |
| virtual const DtVpfFloatData * | getFloatField (const DtString &field) const |
| virtual const DtVpf3CoordData * | getCoordField (const DtString &field) const |
| virtual const DtVpfTextData * | getTextField (const DtString &field) const |
| virtual const DtVpfTripletData * | getTripletField (const DtString &field) const |
Protected Member Functions | |
| virtual DtVpfData * | getField (const DtString &field) const |
| function to find the requested field used by the data specific types to get the field More... | |
Protected Attributes | |
| std::vector< DtVpfData * > | myData |
| DtVpfTable * | myTable |
a class representing a row of data from a table.
Rows don't really own any data, the columns own the data. The row only owns pointers to the data across the columns.
| DtVpfRow::DtVpfRow | ( | const DtVpfRow & | row | ) |
Copy constructor is private to prevent copying.
| DtVpfRow::DtVpfRow | ( | DtVpfTable * | table | ) |
Constructor takes the table that this column belongs to.
|
virtual |
Destructor.
Assignment operator is private to prevent copying.
loads this row with data from the columns at the given index
|
virtual |
returns the table that owns this row
allows indexed access to the elements of the row
| DtInvalidInput | if the index is out of range |
|
virtual |
returns the number of elements in this row
determines if the row has the named field
|
virtual |
Data specific type of data access.
| DtInvalidInput | if the field is not the right type |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
function to find the requested field used by the data specific types to get the field
| DtInvalidInput | if the field does not exist |
|
protected |
|
protected |