Fairport
v1.0.38
|
The actual table object that clients reference. More...
#include <table.h>
Public Member Functions | |
table () | |
Construct an empty table. | |
table (const node &n) | |
Construct a table from this node. | |
table (const table &other) | |
Copy constructor. | |
const_table_row | operator[] (ulong row) const |
const_table_row_iter | begin () const |
const_table_row_iter | end () const |
node & | get_node () |
const node & | get_node () const |
ulonglong | get_cell_value (ulong row, prop_id id) const |
std::vector< byte > | read_cell (ulong row, prop_id id) const |
hnid_stream_device | open_cell_stream (ulong row, prop_id id) |
std::vector< prop_id > | get_prop_list () const |
prop_type | get_prop_type (prop_id id) const |
row_id | get_row_id (ulong row) const |
ulong | lookup_row (row_id id) const |
size_t | size () const |
The actual table object that clients reference.
The table object is an in memory representation of the table context (TC). Clients use the open_table(const node&) free function to create table objects.
A table object's job in general is to allow access to the individual row objects, either via operator[] or the iterators. Most property access should go through the row objects. Other member functions allow for row and type lookup.
fairport::table::table | ( | ) | [inline] |
fairport::table::table | ( | const node & | n | ) | [inline, explicit] |
fairport::table::table | ( | const table & | other | ) | [inline] |
const_table_row_iter fairport::table::begin | ( | ) | const [inline] |
const_table_row_iter fairport::table::end | ( | ) | const [inline] |
Get the contents of the specified cell in the specified row.
key_not_found<prop_id> | If the specified property does not exist on the specified row |
out_of_range | If the specified row offset is beyond the size of this table |
[in] | row | The offset into the table |
[in] | id | The prop_id to find the cell value of |
node& fairport::table::get_node | ( | ) | [inline] |
const node& fairport::table::get_node | ( | ) | const [inline] |
std::vector<prop_id> fairport::table::get_prop_list | ( | ) | const [inline] |
hnid_stream_device fairport::table::open_cell_stream | ( | ulong | row, |
prop_id | id | ||
) | [inline] |
Open a stream over a property in a given row.
key_not_found<prop_id> | If the specified property does not exist on the specified row |
out_of_range | If the specified row offset is beyond the size of this table |
[in] | row | The offset into the table |
[in] | id | The prop_id to find the cell value of |
const_table_row fairport::table::operator[] | ( | ulong | row | ) | const [inline] |
Get the contents of a indirect property in the specified row.
key_not_found<prop_id> | If the specified property does not exist on the specified row |
out_of_range | If the specified row offset is beyond the size of this table |
[in] | row | The offset into the table |
[in] | id | The prop_id to find the cell value of |
size_t fairport::table::size | ( | ) | const [inline] |