OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
A scalar constant expression. More...
#include <SConstant.h>
Public Member Functions | |
SConstant (T value) | |
Constructor. More... | |
virtual | ~SConstant () |
virtual Scalar< T > * | clone () const |
Make clone. More... | |
virtual T | evaluate () const |
Evaluate. More... | |
virtual bool | isConstant () const |
Test for constant. More... | |
virtual void | print (std::ostream &str, int precedence) const |
Print expression. More... | |
void | print (std::ostream &os, int) const |
Print expression. More... | |
void | print (std::ostream &os, int) const |
Print expression. More... | |
void | print (std::ostream &os, int) const |
Print expression. More... | |
void | print (std::ostream &os, int) 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... | |
Private Member Functions | |
SConstant () | |
SConstant (const SConstant< T > &) | |
void | operator= (const SConstant< T > &) |
Private Attributes | |
T | value |
A scalar constant expression.
Definition at line 35 of file SConstant.h.
|
inlineexplicit |
Constructor.
Definition at line 73 of file SConstant.h.
|
inlinevirtual |
Definition at line 79 of file SConstant.h.
|
private |
|
private |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Test for constant.
Reimplemented from Expressions::Scalar< T >.
Definition at line 96 of file SConstant.h.
|
private |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Print expression.
Implements Expressions::Scalar< T >.
|
private |
Definition at line 65 of file SConstant.h.