Provides access to a set of named columns all with the same number of rows. Columns can also be floating, meaning they do not share the same number of rows as the table, but can still be accessed. More...
#include <Table.h>
Public Member Functions | |
virtual uint04 | addChannel (const DynamicPointer< TableColumn > &channel, bool is_floating=false) |
virtual void | addIndexChannel (const DynamicPointer< TableColumn > &channel) |
void | addRow () |
void | appendRows (uint04 size) |
auto | begin () |
void | clear () |
virtual uint04 | columnSize () const |
void | copyRow (uint04 source, uint04 destination) |
void | copyRows (uint04 source, uint04 destination, uint04 size) |
virtual uint04 | createChannel (const String &name, const TypeInfo &type_info, bool is_floating=false)=0 |
auto | end () |
void | fetchDataColumns (Buffer< DynamicPointer< TableColumn > > &columns, const Buffer< String > &exclusion_list) |
void | fixIndexLinking (const DynamicPointer< TableColumn > &channel) |
TableColumn & | get (const String &channel) |
const TableColumn & | get (const String &channel) const |
TableColumn & | get (uint04 channel_index) |
const TableColumn & | get (uint04 channel_index) const |
Buffer< String > | getColumnNames () const |
const DynamicPointer< TableColumn > & | getPtr (const String &channel) |
const DynamicPointer< TableColumn > & | getPtr (uint04 channel_index) |
virtual UUID | GUID () const |
bool | hasColumn (const String &column_name) const |
bool | hasColumn (uint04 index) const |
bool | hasMatchingColumns (const Table &table) const |
uint04 | indexOf (const String &column_name) const |
void | insertRow (uint04 index) |
void | insertRows (uint04 index, uint04 size) |
void | mapFromFile (BinaryFile &file, uint08 version_number) |
void | mapToFile (BinaryFile &file, const Buffer< String > &exclusion_list={}) const |
const String & | name () const |
bool | operator== (const Table &table) const |
TableColumn & | operator[] (const String &channel) |
const TableColumn & | operator[] (const String &channel) const |
TableColumn & | operator[] (uint04 channel_index) |
const TableColumn & | operator[] (uint04 channel_index) const |
void | removeColumn (const String &channel) |
void | removeColumn (uint04 channel) |
void | removeRow (uint04 index) |
void | removeRows (const Buffer< uint04 > &sorted_romove_indices) |
void | removeRows (uint04 index, uint04 size) |
void | removeRows (uint04 offset, const Buffer< bool > &remove_mask) |
void | renameColumn (uint04 column_index, const String &new_name) |
virtual uint04 | rowSize () const |
template<class t_type > | |
void | set (uint04 channel_index, uint04 value_index, const t_type &value) |
template<uint01 t_dims, class t_type > | |
void | set (uint04 channel_index, uint04 value_index, const Vector< t_dims, t_type > &value) |
void | setAll (uint04 to_location, uint04 from_location, uint04 size, ConstPointer< Table > from_table) |
void | setSize (uint04 size) |
virtual uint04 | size () const |
Table () | |
Table (const String &name) | |
void | update (const TableChange &change, bool update_floating) |
void | updateAll (bool update_floating) |
bool | validate () const |
virtual | ~Table () |
Protected Attributes | |
Buffer< DynamicPointer< TableColumn > > | m_data_channels |
Buffer< DynamicPointer< TableColumn > > | m_index_channels |
Buffer< bool > | m_is_floating |
String | m_name |
Dictionary< String, DynamicPointer< TableColumn > > | m_name_channels |
uint04 | m_size |
UUID | m_uuid |
Provides access to a set of named columns all with the same number of rows. Columns can also be floating, meaning they do not share the same number of rows as the table, but can still be accessed.
Table | ( | ) |
|
virtual |
|
virtual |
|
virtual |
void addRow | ( | ) |
void appendRows | ( | uint04 | size | ) |
|
inline |
void clear | ( | ) |
|
virtual |
|
pure virtual |
Implemented in TableType.
|
inline |
void fetchDataColumns | ( | Buffer< DynamicPointer< TableColumn > > & | columns, |
const Buffer< String > & | exclusion_list ) |
void fixIndexLinking | ( | const DynamicPointer< TableColumn > & | channel | ) |
|
inline |
|
inline |
TableColumn & get | ( | uint04 | channel_index | ) |
const TableColumn & get | ( | uint04 | channel_index | ) | const |
|
inline |
|
inline |
|
inlinevirtual |
bool hasColumn | ( | const String & | column_name | ) | const |
bool hasColumn | ( | uint04 | index | ) | const |
bool hasMatchingColumns | ( | const Table & | table | ) | const |
void insertRow | ( | uint04 | index | ) |
void mapFromFile | ( | BinaryFile & | file, |
uint08 | version_number ) |
void mapToFile | ( | BinaryFile & | file, |
const Buffer< String > & | exclusion_list = {} ) const |
const String & name | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void removeColumn | ( | const String & | channel | ) |
void removeColumn | ( | uint04 | channel | ) |
void removeRow | ( | uint04 | index | ) |
|
virtual |
|
inline |
|
inline |
void setAll | ( | uint04 | to_location, |
uint04 | from_location, | ||
uint04 | size, | ||
ConstPointer< Table > | from_table ) |
void setSize | ( | uint04 | size | ) |
|
virtual |
void update | ( | const TableChange & | change, |
bool | update_floating ) |
void updateAll | ( | bool | update_floating | ) |
bool validate | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |