Represents a HIPO bank, a tabular data structure with rows and typed columns.
More...
|
| | bank () |
| | Default constructor. More...
|
| |
| | bank (const schema &__schema) |
| | Construct a bank from a schema. More...
|
| |
| | bank (const schema &__schema, int __rows) |
| | Construct a bank from a schema with a specified number of rows. More...
|
| |
| | ~bank () override |
| |
| schema & | getSchema () |
| |
| int | getRows () const noexcept |
| |
| void | setRows (int rows) |
| |
| int | getInt (int item, int index) const noexcept |
| |
| int | getShort (int item, int index) const noexcept |
| |
| int | getByte (int item, int index) const noexcept |
| |
| float | getFloat (int item, int index) const noexcept |
| |
| double | getDouble (int item, int index) const noexcept |
| |
| long | getLong (int item, int index) const noexcept |
| |
| std::vector< int > | getInt (int item) const noexcept |
| |
| std::vector< float > | getFloat (int item) const noexcept |
| |
| std::vector< double > | getDouble (int item) const noexcept |
| |
| template<typename T = double> |
| T | get (int item, int index) const noexcept |
| | Generic getter that returns the value at the given column and row. More...
|
| |
| int | getInt (const char *name, int index) const noexcept |
| |
| int | getShort (const char *name, int index) const noexcept |
| |
| int | getByte (const char *name, int index) const noexcept |
| |
| float | getFloat (const char *name, int index) const noexcept |
| |
| double | getDouble (const char *name, int index) const noexcept |
| |
| long | getLong (const char *name, int index) const noexcept |
| |
| std::vector< int > | getInt (const char *name) const noexcept |
| |
| std::vector< float > | getFloat (const char *name) const noexcept |
| |
| std::vector< double > | getDouble (const char *name) const noexcept |
| |
| template<typename T = double> |
| T | get (const char *name, int index) const noexcept |
| | Generic getter that returns the value at the given column name and row. More...
|
| |
| void | putInt (const char *name, int index, int32_t value) |
| |
| void | putShort (const char *name, int index, int16_t value) |
| |
| void | putByte (const char *name, int index, int8_t value) |
| |
| void | putFloat (const char *name, int index, float value) |
| |
| void | putDouble (const char *name, int index, double value) |
| |
| void | putLong (const char *name, int index, int64_t value) |
| |
| template<typename T > |
| void | put (const char *name, int index, T value) |
| | Generic setter by column name, dispatches to the typed put method. More...
|
| |
| void | putInt (int item, int index, int32_t value) |
| |
| void | putShort (int item, int index, int16_t value) |
| |
| void | putByte (int item, int index, int8_t value) |
| |
| void | putFloat (int item, int index, float value) |
| |
| void | putDouble (int item, int index, double value) |
| |
| void | putLong (int item, int index, int64_t value) |
| |
| template<typename T > |
| void | put (int item, int index, T value) |
| | Generic setter by column index, dispatches to the typed put method. More...
|
| |
| rowlist::list_t const & | getRowList () const |
| |
| rowlist::list_t const | getFullRowList () const |
| |
| rowlist & | getMutableRowList () |
| |
| rowlist::list_t const | getRowListLinked (int const row, int const column) const |
| |
| void | show () const override |
| | show this bank's contents; only the rows in its current rowlist instance are shown More...
|
| |
| void | show (bool const showAllRows) const |
| |
| void | printValue (int schemaEntry, int row) const |
| |
| void | reset () |
| | Reset the bank to an empty state (zero rows). More...
|
| |
| void | notify () override |
| | Called when the bank is updated; recalculates the row count from the schema. More...
|
| |
| | structure () |
| | Default constructor. Sets the structure address to nullptr. More...
|
| |
| | structure (int size) |
| |
| | structure (int __group, int __item, std::string &str) |
| | Construct a structure from a group, item, and string payload. More...
|
| |
| virtual | ~structure ()=default |
| |
| bool | allocate (int size) |
| |
| int | getSize () const noexcept |
| |
| int | getHeaderSize () const noexcept |
| |
| int | getDataSize () const noexcept |
| |
| int | getType () const |
| |
| int | getGroup () const |
| |
| int | getItem () const |
| |
| void | init (const char *buffer, int size) |
| |
| void | initNoCopy (const char *buffer, int size) |
| |
| const char * | getAddress () |
| |
| void | setSize (int size) |
| |
| void | setHeaderSize (int size) |
| |
| void | setDataSize (int size) |
| |
| int | getIntAt (int index) const noexcept |
| |
| int16_t | getShortAt (int index) const noexcept |
| |
| int8_t | getByteAt (int index) const noexcept |
| |
| float | getFloatAt (int index) const noexcept |
| |
| double | getDoubleAt (int index) const noexcept |
| |
| long | getLongAt (int index) const noexcept |
| |
| std::string | getStringAt (int index) |
| |
| void | putIntAt (int index, int value) |
| |
| void | putShortAt (int index, int16_t value) |
| |
| void | putByteAt (int index, int8_t value) |
| |
| void | putFloatAt (int index, float value) |
| |
| void | putDoubleAt (int index, double value) |
| |
| void | putLongAt (int index, int64_t value) |
| |
| void | putStringAt (int index, std::string &str) |
| |
Represents a HIPO bank, a tabular data structure with rows and typed columns.
A bank is defined by a schema that describes its columns (entries) and their types. It extends structure to provide typed access to bank data by column name or index.
Definition at line 352 of file bank.h.