Rudiments
table.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_TABLE_H
5#define RUDIMENTS_TABLE_H
6
7#include <rudiments/private/tableincludes.h>
8
14template <class valuetype>
15class table : public tablecollection<valuetype> {
16 public:
17
19 table();
20
24
28
32
35 table<valuetype> &operator=(
37
39 ~table();
40
46 void setCopyColumnNames(bool copy);
47
53 bool getCopyColumnNames();
54
56 void setColumnName(uint64_t col, const char *name);
57
59 const char *getColumnName(uint64_t col);
60
65 uint64_t getColumnCount();
66
83 void setManageValues(bool manage);
84
90 bool getManageValues();
91
108 void setManageArrayValues(bool manage);
109
116
118 void setValue(uint64_t row, uint64_t col,
119 valuetype value);
120
123 valuetype getValue(uint64_t row,
124 uint64_t col);
125
127 valuetype &getReference(uint64_t row,
128 uint64_t col);
129
132 valuetype getValue(uint64_t row,
133 const char *colname);
134
139 uint64_t getRowCount();
140
142 bool getAllRowsAvailable();
143
146 bool clear();
147
148 #include <rudiments/private/table.h>
149};
150
151#include <rudiments/private/tableinlines.h>
152
153#endif
Definition avltree.h:11
Definition table.h:15
valuetype getValue(uint64_t row, uint64_t col)
Definition tableinlines.h:160
valuetype & getReference(uint64_t row, uint64_t col)
Definition tableinlines.h:166
const char * getColumnName(uint64_t col)
Definition tableinlines.h:99
bool clear()
Definition tableinlines.h:196
void setColumnName(uint64_t col, const char *name)
Definition tableinlines.h:83
bool getAllRowsAvailable()
Definition tableinlines.h:190
bool getManageArrayValues()
Definition tableinlines.h:142
void setManageArrayValues(bool manage)
Definition tableinlines.h:136
void setManageValues(bool manage)
Definition tableinlines.h:124
table< valuetype > & operator=(table< valuetype > &a)
Definition tableinlines.h:31
void setCopyColumnNames(bool copy)
Definition tableinlines.h:105
uint64_t getColumnCount()
Definition tableinlines.h:118
bool getCopyColumnNames()
Definition tableinlines.h:112
uint64_t getRowCount()
Definition tableinlines.h:184
bool getManageValues()
Definition tableinlines.h:130
void setValue(uint64_t row, uint64_t col, valuetype value)
Definition tableinlines.h:148
Definition tablecollection.h:35