|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
An expression defined as a reference to an array. More...
#include <ARefExpr.h>
Public Member Functions | |
| ARefExpr (const std::string &objName, const std::string &attName) | |
| Constructor. | |
| ARefExpr (const ARefExpr< T > &rhs) | |
| virtual | ~ARefExpr () |
| virtual OArray< T > * | clone () const |
| Make clone. | |
| virtual std::vector< T > | evaluate () const |
| Evaluate the reference and return the value referred to. | |
| virtual void | print (std::ostream &os, int precedence=99) const |
| Print expression. | |
| virtual bool | isConstant () const |
| Test for constant. | |
| virtual void | invalidate () |
| Force re-evaluation. | |
Private Member Functions | |
| void | operator= (const ARefExpr &) |
| 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 an array.
Definition at line 42 of file ARefExpr.h.
| Expressions::ARefExpr< T >::ARefExpr | ( | const std::string & | objName, |
| const std::string & | attName ) |
Constructor.
Definition at line 88 of file ARefExpr.h.
References att_name, itsAttr, itsObject, and obj_name.
Referenced by ARefExpr(), clone(), fill(), and operator=().
| Expressions::ARefExpr< T >::ARefExpr | ( | const ARefExpr< T > & | rhs | ) |
Definition at line 96 of file ARefExpr.h.
References ARefExpr(), att_name, itsAttr, itsObject, Expressions::OArray< T >::OArray(), and obj_name.
|
virtual |
Definition at line 104 of file ARefExpr.h.
References itsObject.
|
virtual |
Make clone.
Implements Expressions::OArray< T >.
Definition at line 110 of file ARefExpr.h.
References ARefExpr(), and Expressions::OArray< T >::OArray().
|
inlinevirtual |
Evaluate the reference and return the value referred to.
Implements Expressions::OArray< T >.
Definition at line 116 of file ARefExpr.h.
References fill(), getImage(), and itsAttr.
|
private |
Definition at line 151 of file ARefExpr.h.
References ARefExpr(), att_name, OpalData::find(), OpalData::getInstance(), itsAttr, itsObject, and obj_name.
Referenced by evaluate().
|
private |
Definition at line 135 of file ARefExpr.h.
References print().
Referenced by evaluate().
|
virtualinherited |
Force re-evaluation.
Reimplemented in Expressions::AAutomatic< T >, Expressions::SAutomatic< T >, Expressions::SRefAttr< T >, and Expressions::SRefExpr< T >.
Definition at line 27 of file Invalidator.cpp.
|
inlinevirtualinherited |
Test for constant.
Definition at line 306 of file AbstractObjects/Expressions.h.
|
private |
|
virtual |
Print expression.
Implements Expressions::OArray< T >.
Definition at line 144 of file ARefExpr.h.
References att_name, and obj_name.
Referenced by getImage().
|
private |
Definition at line 76 of file ARefExpr.h.
Referenced by ARefExpr(), ARefExpr(), fill(), and print().
|
mutableprivate |
Definition at line 80 of file ARefExpr.h.
Referenced by ARefExpr(), ARefExpr(), evaluate(), and fill().
|
mutableprivate |
Definition at line 79 of file ARefExpr.h.
Referenced by ARefExpr(), ARefExpr(), fill(), and ~ARefExpr().
|
private |
Definition at line 75 of file ARefExpr.h.
Referenced by ARefExpr(), ARefExpr(), fill(), and print().