28 #ifndef LATTICES_LELUNARY_H
29 #define LATTICES_LELUNARY_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/lattices/LEL/LELInterface.h>
35 #include <casacore/lattices/LEL/LELScalar.h>
36 #include <casacore/lattices/LEL/LELUnaryEnums.h>
115 const Slicer& section)
const;
200 const Slicer& section)
const;
295 const Slicer& section)
const;
325 #ifndef CASACORE_NO_AUTO_TEMPLATES
326 #include <casacore/lattices/LEL/LELInterface.tcc>
327 #include <casacore/lattices/LEL/LELUnary.tcc>
Referenced counted pointer for constant data.
LockType
Define the possible lock types.
This LEL class handles logical unary operators.
virtual LELScalar< Bool > getScalar() const
Recursively evaluate the scalar expression.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking/syncing of a lattice in a lattice expression.
CountedPtr< LELInterface< Bool > > pExpr_p
virtual String className() const
Get class name.
~LELUnaryBool()
Destructor does nothing.
virtual Bool hasLock(FileLocker::LockType) const
LELUnaryEnums::Operation op_p
LELUnaryBool(const LELUnaryEnums::Operation op, const CountedPtr< LELInterface< Bool > > &pExpr)
Constructor takes operation and expression to be operated upon.
virtual Bool prepareScalarExpr()
Do further preparations (e.g.
virtual void eval(LELArray< Bool > &result, const Slicer §ion) const
Recursively evaluate the expression.
virtual Bool prepareScalarExpr()
Do further preparations (e.g.
virtual LELScalar< T > getScalar() const
Evaluate the scalar expression (get the constant)
virtual String className() const
Get class name.
LELUnaryConst(const T val)
Constructor takes a scalar.
virtual void eval(LELArray< T > &result, const Slicer §ion) const
Evaluate the expression.
LELUnaryConst()
Default constructor creates a scalar with a false mask.
~LELUnaryConst()
Destructor does nothing.
This LEL class handles numerical unary operators.
virtual LELScalar< T > getScalar() const
Recursively evaluate the scalar expression.
LELUnary(const LELUnaryEnums::Operation op, const CountedPtr< LELInterface< T > > &pExpr)
Constructor takes operation and expression to be operated upon.
virtual Bool hasLock(FileLocker::LockType) const
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking/syncing of a lattice in a lattice expression.
LELUnaryEnums::Operation op_p
virtual void eval(LELArray< T > &result, const Slicer §ion) const
Recursively evaluate the expression.
~LELUnary()
Destructor does nothing.
virtual Bool prepareScalarExpr()
Do further preparations (e.g.
CountedPtr< LELInterface< T > > pExpr_p
virtual String className() const
Get class name.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.