28 #ifndef TABLES_EXPRUNITNODE_H
29 #define TABLES_EXPRUNITNODE_H
virtual Double getDouble(const TableExprId &id)
TableExprNodeArrayUnit(const TENShPtr &child, const Unit &unit)
virtual MArray< DComplex > getArrayDComplex(const TableExprId &id)
The default implementation of getArrayDComplex does getArrayDouble and converts the result...
virtual DComplex getDComplex(const TableExprId &id)
Base class for arrays in table select expression.
Abstract base class for a node in a table column expression tree.
virtual Double getUnitFactor() const
Get the unit conversion factor.
static Unit adaptUnits(TENShPtr &node1, TENShPtr &node2, TENShPtr &node3)
Find the unit to be used and adapt the nodes to it.
virtual Double getUnitFactor() const
Get the unit factor.
std::complex< Double > DComplex
Unit for array values in a table select expression tree.
const Unit & unit() const
Get the unit.
TableExprNodeUnit(const TENShPtr &child, const Unit &unit)
Construct from the given child node and unit.
static void adaptUnit(TENShPtr &node, const Unit &unit)
Use useUnit to see if a conversion is needed.
static Double set(TableExprNodeRep &parent, const TENShPtr &child, const Unit &unit)
Calculate the conversion factor and return it.
The identification of a TaQL selection subject.
virtual MArray< Double > getArrayDouble(const TableExprId &id)
The default implementation of getArrayDouble does getArrayInt and converts the result.
static TENShPtr useUnit(const TENShPtr &node, const Unit &unit)
Create a new node if unit conversion is needed.
Unit for scalar values in a table select expression tree.
~TableExprNodeArrayUnit()
Abstract base class for a node having 0, 1, or 2 child nodes.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.