Rudiments
|
Inherits tablecollection< valuetype >.
Public Member Functions | |
table () | |
table (table< valuetype > &a) | |
table (tablecollection< valuetype > &a) | |
table< valuetype > & | operator= (table< valuetype > &a) |
table< valuetype > & | operator= (tablecollection< valuetype > &a) |
~table () | |
void | setCopyColumnNames (bool copy) |
bool | getCopyColumnNames () |
void | setColumnName (uint64_t col, const char *name) |
const char * | getColumnName (uint64_t col) |
uint64_t | getColumnCount () |
void | setManageValues (bool manage) |
bool | getManageValues () |
void | setManageArrayValues (bool manage) |
bool | getManageArrayValues () |
void | setValue (uint64_t row, uint64_t col, valuetype value) |
valuetype | getValue (uint64_t row, uint64_t col) |
valuetype & | getReference (uint64_t row, uint64_t col) |
valuetype | getValue (uint64_t row, const char *colname) |
uint64_t | getRowCount () |
bool | getAllRowsAvailable () |
bool | clear () |
Public Member Functions inherited from tablecollection< valuetype > | |
tablecollection () | |
tablecollection (tablecollection &c) | |
tablecollection & | operator= (tablecollection &c) |
virtual | ~tablecollection () |
virtual const char * | getType () |
virtual uint64_t | getCount () |
virtual ssize_t | write () |
virtual ssize_t | write (output *out) |
virtual ssize_t | writeJson () |
virtual ssize_t | writeJson (bool indent) |
virtual ssize_t | writeJson (output *out) |
virtual ssize_t | writeJson (output *out, bool indent) |
Public Member Functions inherited from collection | |
collection () | |
collection (collection &c) | |
collection & | operator= (collection &c) |
virtual | ~collection () |
comparator * | getComparator () |
void | setComparator (comparator *newcomp) |
virtual bool | isReadOnly () |
virtual bool | isBlockBased () |
virtual uint64_t | getBlockSize () |
virtual bool | isSequentialAccess () |
virtual void | setManageKeys (bool manage) |
virtual bool | getManageKeys () |
virtual void | setManageArrayKeys (bool manage) |
virtual bool | getManageArrayKeys () |
Public Member Functions inherited from object | |
virtual | ~object () |
The table class allows you to store an arbitrary number of values in a table. Since the table class is template-based, you can store arbitrary types of values.
Read-write, monolithic, random-access.
Creates an instance of the table class that is a copy of "a".
|
inline |
Creates an instance of the table class that is a copy of "a".
Deletes this instance of the table class.
Removes all values currently stored in the table, such that getValue() will return NULL or 0. Always returns true.
Implements collection.
Returns true.
Implements tablecollection< valuetype >.
|
inlinevirtual |
Returns the current number of columns in the table.
Returns larger and larger values as calls to setColumnName() or setValue() extend the table.
Implements tablecollection< valuetype >.
|
inlinevirtual |
Returns the name of column "col".
Implements tablecollection< valuetype >.
Returns whether or not this instance of the tablecollection class is configured to make copies of the values that are passed in to setColumnName().
Returns true if it is and false if it is not.
Reimplemented from tablecollection< valuetype >.
Returns whether or not this instance of the table class is configured to array-delete the values that are stored at each location in the table when clear() is called.
Returns true if it is and false if it is not.
Reimplemented from collection.
Returns whether or not this instance of the table class is configured to delete the values that are stored at each location in the table when clear() is called.
Returns true if it is and false if it is not.
Reimplemented from collection.
|
inlinevirtual |
Returns a reference to the value at "row", "col".
Implements tablecollection< valuetype >.
|
inlinevirtual |
Returns the current number of rows in the table.
Returns larger and larger values as calls to setValue() extend the table.
Implements tablecollection< valuetype >.
|
inlinevirtual |
Returns the value at "row", "colname". Returns NULL or 0 if there is no value at that address.
Implements tablecollection< valuetype >.
|
inlinevirtual |
Returns the value at "row", "col". Returns NULL or 0 if there is no value at that address.
Implements tablecollection< valuetype >.
|
inline |
Makes this instance of the table class identical to "a".
|
inline |
Makes this instance of the table class identical to "a".
|
inlinevirtual |
Sets the name of column "col" to "name"
Implements tablecollection< valuetype >.
Indicates whether or not this instance of the tablecollection class should make copies the values that are passed in to setColumnName().
Defaults to "false".
Reimplemented from tablecollection< valuetype >.
|
inlinevirtual |
Indicates whether or not this instance of the table class should array-delete the values that are stored at each location in the table when clear() is called.
Setting "manage" to true causes the instance to array-delete the values that are stored at each location in the table when clear() is called.
Setting "manage" to false causes the instance not to array-delete the values that are stored at each location in the table when clear() is called.
Defaults to "false".
Note that setting this true implies setManageValues(false);
Reimplemented from collection.
Indicates whether or not this instance of the table class should delete the values that are stored at each location in the table when clear() is called.
Setting "manage" to true causes the instance to delete the values that are stored at each location in the table when clear() is called.
Setting "manage" to false causes the instance not to delete the values that are stored at each location in the table when clear() is called.
Defaults to "false".
Note that setting this true implies setManageArrayValues(false);
Reimplemented from collection.
|
inlinevirtual |
Sets the value at "row", "col" to "value".
Implements tablecollection< valuetype >.