![]() |
Jazz 1.25.+
|
ColSelection: A selection of columns from a Space. More...
#include <space.h>
Public Member Functions | |
ColSelection (pChar query, pSpace p_space) | |
The constructor for a ColSelection. | |
virtual bool | restart () |
ColSelection: Restart the iterator. | |
virtual int | next_index () |
ColSelection: Get the next column index. | |
virtual pName | next_name () |
ColSelection: Get the next column name. | |
Data Fields | |
bool | is_valid = false |
True if the iterator was created by a successful query. | |
Private Attributes | |
int | current_col = 0 |
The index of the current column (the next to be retrieved). | |
stdNames | name = {} |
The list of column names in the selection. | |
std::vector< int > | index = {} |
The list of column indices in the selection. | |
ColSelection: A selection of columns from a Space.
The interface is consistent with RowSelection, but unlike RowSelection the parent class is probably all you need.
The constructor for a ColSelection.
The constructor will parse the query and create a list of column names and indices. These will not change during the lifetime of the object.
|
virtual |
ColSelection: Restart the iterator.
|
virtual |
ColSelection: Get the next column index.
|
virtual |
ColSelection: Get the next column name.