|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
A scalar expression without operands. More...
#include <SNull.h>
Public Member Functions | |
| SNull (const TFunction0< T > &function) | |
| Constructor. | |
| SNull (const SNull< T > &) | |
| virtual | ~SNull () |
| virtual Scalar< T > * | clone () const |
| Make clone. | |
| virtual T | evaluate () const |
| Evaluate. | |
| virtual void | print (std::ostream &str, int precedence=99) const |
| Print expression. | |
| virtual bool | isConstant () const |
| Test for constant. | |
Static Public Member Functions | |
| static Scalar< T > * | make (const TFunction0< T > &function) |
| Make expression. | |
Private Member Functions | |
| SNull () | |
| void | operator= (const SNull &) |
Private Attributes | |
| const TFunction0< T > & | fun |
A scalar expression without operands.
|
inlineexplicit |
|
inline |
Definition at line 78 of file SNull.h.
References fun, Expressions::Scalar< T >::Scalar(), and SNull().
|
inlinevirtual |
|
private |
|
inlinevirtual |
Make clone.
Implements Expressions::Scalar< T >.
Definition at line 96 of file SNull.h.
References Expressions::Scalar< T >::Scalar(), and SNull().
|
inlinevirtual |
Evaluate.
Implements Expressions::Scalar< T >.
Definition at line 102 of file SNull.h.
References fun.
|
inlinevirtualinherited |
Test for constant.
Reimplemented in Expressions::SConstant< T >.
Definition at line 282 of file AbstractObjects/Expressions.h.
|
inlinestatic |
Make expression.
Definition at line 124 of file SNull.h.
References fun, Expressions::Scalar< T >::Scalar(), and SNull().
Referenced by Expressions::parseArrayPrimary(), and Expressions::parsePrimary().
|
private |
|
inlinevirtual |
Print expression.
Implements Expressions::Scalar< T >.
Definition at line 130 of file SNull.h.
References fun.
|
private |