OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
A scalar expression. More...
#include <Expressions.h>
Public Member Functions | |
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... | |
Private Member Functions | |
void | operator= (const Scalar &) |
A scalar expression.
Definition at line 71 of file Expressions.h.
|
inline |
Definition at line 267 of file Expressions.h.
|
inline |
Definition at line 272 of file Expressions.h.
|
inlinevirtual |
Definition at line 277 of file Expressions.h.
|
pure virtual |
Copy scalar expression.
Implemented in Expressions::ASUnary< T >, Expressions::Indexer< T >, Expressions::SBinary< T, U >, Expressions::SCell, Expressions::SConstant< T >, Expressions::SHash, Expressions::SNull< T >, Expressions::SRefExpr< T >, and Expressions::SUnary< T, U >.
|
pure virtual |
|
inlinevirtual |
Test for constant.
Reimplemented in Expressions::SConstant< T >.
Definition at line 282 of file Expressions.h.
|
private |
|
pure virtual |
Print expression.
Implemented in Expressions::ASUnary< T >, Expressions::SUnary< T, U >, Expressions::SRefExpr< T >, Expressions::SConstant< T >, Expressions::SConstant< T >, Expressions::SConstant< T >, Expressions::SConstant< T >, Expressions::SConstant< T >, Expressions::Indexer< T >, Expressions::SBinary< T, U >, Expressions::SHash, Expressions::SNull< T >, and Expressions::SCell.