|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
An expression defined as a reference to a scalar. More...
#include <SRefExpr.h>
Public Member Functions | |
| SRefExpr (const std::string &objName, const std::string &attName) | |
| Constructor. | |
| SRefExpr (const SRefExpr< T > &rhs) | |
| virtual | ~SRefExpr () |
| virtual Scalar< T > * | clone () const |
| Make clone. | |
| virtual T | evaluate () const |
| Evaluate. | |
| virtual void | invalidate () |
| Invalidate. | |
| virtual void | print (std::ostream &os, int precedence=99) const |
| Print expression. | |
| virtual bool | isConstant () const |
| Test for constant. | |
Private Member Functions | |
| void | operator= (const SRefExpr &) |
| void | fill () const |
| const std::string | getImage () const |
Private Attributes | |
| const std::string | obj_name |
| const std::string | att_name |
| Object * | itsObject |
| Attribute * | itsAttr |
An expression defined as a reference to a scalar.
Definition at line 41 of file SRefExpr.h.
| Expressions::SRefExpr< T >::SRefExpr | ( | const std::string & | objName, |
| const std::string & | attName ) |
Constructor.
Definition at line 91 of file SRefExpr.h.
References att_name, itsAttr, itsObject, and obj_name.
Referenced by clone(), fill(), operator=(), and SRefExpr().
| Expressions::SRefExpr< T >::SRefExpr | ( | const SRefExpr< T > & | rhs | ) |
Definition at line 99 of file SRefExpr.h.
References att_name, itsAttr, itsObject, obj_name, Expressions::Scalar< T >::Scalar(), and SRefExpr().
|
virtual |
Definition at line 107 of file SRefExpr.h.
References itsObject.
|
virtual |
Make clone.
Implements Expressions::Scalar< T >.
Definition at line 113 of file SRefExpr.h.
References Expressions::Scalar< T >::Scalar(), and SRefExpr().
|
inlinevirtual |
Evaluate.
Implements Expressions::Scalar< T >.
Definition at line 119 of file SRefExpr.h.
References fill(), getImage(), and itsAttr.
|
private |
Definition at line 160 of file SRefExpr.h.
References att_name, OpalData::find(), OpalData::getInstance(), itsAttr, itsObject, obj_name, and SRefExpr().
Referenced by evaluate().
|
private |
Definition at line 136 of file SRefExpr.h.
References print().
Referenced by evaluate().
|
virtual |
|
inlinevirtualinherited |
Test for constant.
Reimplemented in Expressions::SConstant< T >.
Definition at line 282 of file AbstractObjects/Expressions.h.
|
private |
|
virtual |
Print expression.
Implements Expressions::Scalar< T >.
Definition at line 152 of file SRefExpr.h.
References att_name, and obj_name.
Referenced by getImage().
|
private |
Definition at line 79 of file SRefExpr.h.
Referenced by fill(), print(), SRefExpr(), and SRefExpr().
|
mutableprivate |
Definition at line 83 of file SRefExpr.h.
Referenced by evaluate(), fill(), invalidate(), SRefExpr(), and SRefExpr().
|
mutableprivate |
Definition at line 82 of file SRefExpr.h.
Referenced by fill(), invalidate(), SRefExpr(), SRefExpr(), and ~SRefExpr().
|
private |
Definition at line 78 of file SRefExpr.h.
Referenced by fill(), print(), SRefExpr(), and SRefExpr().