Helper class for sort keys in TableParse. More...
#include <TableParse.h>
Public Member Functions | |
TableParseSort () | |
Construct from a given expression. | |
TableParseSort (const TableExprNode &) | |
Construct from a given expression. | |
TableParseSort (const TableExprNode &, Sort::Order) | |
Construct from a given expression and for the given order. | |
~TableParseSort () | |
const TableExprNode & | node () const |
Get the expression node. | |
Sort::Order | order () const |
Get the sort order. | |
Bool | orderGiven () const |
Is the order given? | |
Private Member Functions | |
void | checkNode () const |
Check if the node results in a scalar and does not contain aggregate functions. | |
Private Attributes | |
TableExprNode | node_p |
Sort::Order | order_p |
Bool | given_p |
Helper class for sort keys in TableParse.
Internal
TableParseSort holds a sort expression and order.
A table command is parsed. An object of this class is used to hold the sort expression and sort order.
Definition at line 198 of file TableParse.h.
casacore::TableParseSort::TableParseSort | ( | ) |
Construct from a given expression.
The order is not given.
casacore::TableParseSort::TableParseSort | ( | const TableExprNode & | ) | [explicit] |
Construct from a given expression.
The order is not given.
casacore::TableParseSort::TableParseSort | ( | const TableExprNode & | , | |
Sort::Order | ||||
) |
Construct from a given expression and for the given order.
casacore::TableParseSort::~TableParseSort | ( | ) |
void casacore::TableParseSort::checkNode | ( | ) | const [private] |
Check if the node results in a scalar and does not contain aggregate functions.
const TableExprNode & casacore::TableParseSort::node | ( | ) | const [inline] |
Sort::Order casacore::TableParseSort::order | ( | ) | const [inline] |
Get the sort order.
Definition at line 983 of file TableParse.h.
References order_p.
Referenced by casacore::TableParseSelect::getOrder().
Bool casacore::TableParseSort::orderGiven | ( | ) | const [inline] |
Is the order given?
Definition at line 981 of file TableParse.h.
References given_p.
Referenced by casacore::TableParseSelect::getOrder().
Bool casacore::TableParseSort::given_p [private] |
Definition at line 230 of file TableParse.h.
Referenced by orderGiven().
Definition at line 228 of file TableParse.h.
Referenced by node().
Sort::Order casacore::TableParseSort::order_p [private] |
Definition at line 229 of file TableParse.h.
Referenced by order().