26#ifndef LATTICES_LELUNARY_H 
   27#define LATTICES_LELUNARY_H 
   31#include <casacore/casa/aips.h> 
   32#include <casacore/lattices/LEL/LELInterface.h> 
   33#include <casacore/lattices/LEL/LELScalar.h> 
   34#include <casacore/lattices/LEL/LELUnaryEnums.h> 
  113                      const Slicer& section) 
const;
 
 
  198                      const Slicer& section) 
const;
 
 
  293                      const Slicer& section) 
const;
 
 
  323#ifndef CASACORE_NO_AUTO_TEMPLATES 
  324#include <casacore/lattices/LEL/LELInterface.tcc> 
  325#include <casacore/lattices/LEL/LELUnary.tcc> 
LockType
Define the possible lock types.
 
void setAttr(const LELAttribute &attrib)
Set the expression attributes of this object.
 
This LEL class handles logical unary operators.
 
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking/syncing of a lattice in a lattice expression.
 
std::shared_ptr< LELInterface< Bool > > pExpr_p
 
virtual LELScalar< Bool > getScalar() const
Recursively evaluate the scalar expression.
 
virtual String className() const
Get class name.
 
~LELUnaryBool()
Destructor does nothing.
 
virtual Bool hasLock(FileLocker::LockType) const
 
LELUnaryEnums::Operation op_p
 
virtual Bool prepareScalarExpr()
Do further preparations (e.g.
 
virtual void eval(LELArray< Bool > &result, const Slicer §ion) const
Recursively evaluate the expression.
 
LELUnaryBool(const LELUnaryEnums::Operation op, const std::shared_ptr< LELInterface< Bool > > &pExpr)
Constructor takes operation and expression to be operated upon.
 
virtual Bool prepareScalarExpr()
Do further preparations (e.g.
 
virtual String className() const
Get class name.
 
virtual LELScalar< T > getScalar() const
Evaluate the scalar expression (get the constant)
 
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.
 
virtual Bool hasLock(FileLocker::LockType) const
 
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking/syncing of a lattice in a lattice expression.
 
std::shared_ptr< LELInterface< T > > pExpr_p
 
LELUnaryEnums::Operation op_p
 
LELUnary(const LELUnaryEnums::Operation op, const std::shared_ptr< LELInterface< T > > &pExpr)
Constructor takes operation and expression to be operated upon.
 
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.
 
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.