|
OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
A scalar expression with one scalar operand. More...
#include <SUnary.h>


Public Member Functions | |
| SUnary (const TFunction1< T, U > &function, PtrToScalar< U > operand) | |
| Constructor. More... | |
| SUnary (const SUnary< T, U > &) | |
| virtual | ~SUnary () |
| virtual Scalar< T > * | clone () const |
| Make clone. More... | |
| virtual T | evaluate () const |
| Evaluate. More... | |
| virtual void | print (std::ostream &, int precedence=99) const |
| Print expression. More... | |
Public Member Functions inherited from Expressions::Scalar< T > | |
| Scalar () | |
| Scalar (const Scalar &) | |
| virtual | ~Scalar () |
| virtual bool | isConstant () const |
| Test for constant. More... | |
Static Public Member Functions | |
| static Scalar< T > * | make (const TFunction1< T, U > &function, PtrToScalar< U > operand) |
| Make a new expression. More... | |
Private Member Functions | |
| SUnary () | |
| void | operator= (const SUnary &) |
Private Attributes | |
| const TFunction1< T, U > & | fun |
| PtrToScalar< U > | opr |
A scalar expression with one scalar operand.
|
inline |
|
inline |
|
inlinevirtual |
|
private |
|
inlinevirtual |
|
inlinevirtual |
Evaluate.
Implements Expressions::Scalar< T >.
Definition at line 109 of file SUnary.h.
References arg(), and Attrib::Legacy::Distribution::T.

|
inlinestatic |
Make a new expression.
Definition at line 134 of file SUnary.h.
References OwnPtr< Object >::release().
Referenced by Expressions::parsePrimary(), and Expressions::parseReal().

|
private |
|
inlinevirtual |
|
private |
|
private |