|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
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. | |
| virtual T | evaluate () const =0 |
| Evaluate. | |
| virtual bool | isConstant () const |
| Test for constant. | |
| virtual void | print (std::ostream &, int precedence=99) const =0 |
| Print expression. | |
Private Member Functions | |
| void | operator= (const Scalar &) |
A scalar expression.
Definition at line 71 of file AbstractObjects/Expressions.h.
|
inline |
Definition at line 267 of file AbstractObjects/Expressions.h.
Referenced by Expressions::ASUnary< T >::ASUnary(), Expressions::ASUnary< T >::clone(), Expressions::Indexer< T >::clone(), Expressions::SBinary< T, U >::clone(), clone(), Expressions::SConstant< T >::clone(), Expressions::SNull< T >::clone(), Expressions::SRefExpr< T >::clone(), Expressions::SUnary< T, U >::clone(), Expressions::Indexer< T >::Indexer(), Expressions::SBinary< T, U >::make(), Expressions::SNull< T >::make(), Expressions::SUnary< T, U >::make(), operator=(), Expressions::SBinary< T, U >::SBinary(), Scalar(), Expressions::SNull< T >::SNull(), Expressions::SRefExpr< T >::SRefExpr(), and Expressions::SUnary< T, U >::SUnary().
|
inline |
Definition at line 272 of file AbstractObjects/Expressions.h.
References Scalar().
|
inlinevirtual |
Definition at line 277 of file AbstractObjects/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 >.
References Scalar().
|
pure virtual |
|
inlinevirtual |
Test for constant.
Reimplemented in Expressions::SConstant< T >.
Definition at line 282 of file AbstractObjects/Expressions.h.
|
private |
|
pure virtual |
Print expression.
Implemented in Expressions::ASUnary< T >, Expressions::Indexer< T >, Expressions::SBinary< T, U >, Expressions::SCell, Expressions::SConstant< T >, Expressions::SConstant< T >, Expressions::SConstant< T >, Expressions::SConstant< T >, Expressions::SConstant< T >, Expressions::SHash, Expressions::SNull< T >, Expressions::SRefExpr< T >, and Expressions::SUnary< T, U >.