#include <ColumnKey.h>
A lazy-evaluated column key initialized either with an index or a name.
If missing at the time of usage, the index or name is evaluated thanks to a BintableColumns
object. Negative (backward) indices are also resolved lazily. After evaluation, the value is cached.
Public Member Functions | |
Construction | |
ColumnKey (long index) | |
Create a column key from an index. | |
ColumnKey (int index) | |
Create a column key from an index. | |
ColumnKey (const std::string &name) | |
Create a column key from a name. | |
ColumnKey (const char *name) | |
Create a column key from a name. | |
Operations | |
long | index (const BintableColumns &columns) |
Get the evaluated index. | |
const std::string & | name (const BintableColumns &columns) |
Get the evaluated name. | |