OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
A scalar expression with one array operand. More...
#include <ASUnary.h>
Public Member Functions | |
ASUnary (const TFunction1< T, const std::vector< T > & > &function, PtrToArray< T > &oper) | |
Constructor. More... | |
ASUnary (const ASUnary< T > &) | |
virtual | ~ASUnary () |
virtual Scalar< T > * | clone () const |
Make clone. More... | |
virtual T | evaluate () const |
Evaluate expression. 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 Scalar< T > * | clone () const =0 |
Copy scalar expression. More... | |
virtual T | evaluate () const =0 |
Evaluate. More... | |
virtual bool | isConstant () const |
Test for constant. More... | |
virtual void | print (std::ostream &, int precedence=99) const =0 |
Print expression. More... | |
Static Public Member Functions | |
static PtrToScalar< T > | make (const TFunction1< T, const std::vector< T > & > &function, PtrToArray< T > &oper) |
Make new expression. More... | |
Private Member Functions | |
ASUnary () | |
void | operator= (const ASUnary &) |
Private Attributes | |
const TFunction1< T, const std::vector< T > & > & | fun |
PtrToArray< T > | opr |
A scalar expression with one array operand.
|
inline |
|
inline |
|
inlinevirtual |
|
private |
|
inlinevirtual |
|
inlinevirtual |
Evaluate expression.
Implements Expressions::Scalar< T >.
Definition at line 112 of file ASUnary.h.
References arg(), and Attrib::Legacy::Distribution::T.
|
inlinestatic |
Make new expression.
Definition at line 137 of file ASUnary.h.
References PyOpal::PyPolynomialPatch::function(), and OwnPtr< Object >::release().
|
private |
|
inlinevirtual |
|
private |
|
private |