OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
An attribute defined as a reference to a scalar. More...
#include <SRefAttr.h>
Public Member Functions | |
SRefAttr (const std::string &oName, const std::string &aName, int index) | |
Constructor. More... | |
SRefAttr (const SRefAttr &) | |
virtual | ~SRefAttr () |
virtual SRefAttr< T > * | clone () const |
Make clone. More... | |
virtual T | evaluate () const |
Evaluate. More... | |
virtual double | getReal () |
Return real value. More... | |
virtual void | invalidate () |
Invalidate. More... | |
virtual void | print (std::ostream &) const |
Print the reference. More... | |
virtual void | set (const T &) const |
Store new value. More... | |
double | getReal () |
![]() | |
AttributeBase () | |
virtual | ~AttributeBase () |
std::string | getImage () const |
Convert to string. More... | |
virtual bool | isExpression () const |
Test for expression. More... | |
![]() | |
int | addReference () const |
Increment reference count. More... | |
int | removeReference () const |
Decrement the reference count. More... | |
bool | isShared () const |
Test for sharing. More... | |
Private Member Functions | |
SRefAttr () | |
void | operator= (const SRefAttr &) |
void | fill () const |
Private Attributes | |
const std::string | obj_name |
const std::string | att_name |
const int | itsIndex |
Object * | itsObject |
Attribute * | itsAttr |
Static Private Attributes | |
static const std::string | typeName |
Additional Inherited Members | |
![]() | |
RCObject () | |
Default constructor. More... | |
RCObject (const RCObject &) | |
Copy constructor. More... | |
virtual | ~RCObject ()=0 |
RCObject & | operator= (const RCObject &right) |
An attribute defined as a reference to a scalar.
Definition at line 48 of file SRefAttr.h.
Expressions::SRefAttr< T >::SRefAttr | ( | const std::string & | oName, |
const std::string & | aName, | ||
int | index | ||
) |
Constructor.
Definition at line 116 of file SRefAttr.h.
Expressions::SRefAttr< T >::SRefAttr | ( | const SRefAttr< T > & | rhs | ) |
Definition at line 123 of file SRefAttr.h.
|
virtual |
Definition at line 131 of file SRefAttr.h.
|
private |
|
virtual |
|
virtual |
Evaluate.
Definition at line 144 of file SRefAttr.h.
References Attrib::Legacy::Distribution::T.
Referenced by Attributes::getBool(), Attributes::getReal(), and Attributes::getString().
|
private |
Definition at line 220 of file SRefAttr.h.
References OpalData::find(), and OpalData::getInstance().
|
virtual |
Return real value.
Definition at line 176 of file SRefAttr.h.
|
inline |
Definition at line 183 of file SRefAttr.h.
|
virtual |
|
private |
|
virtual |
|
virtual |
Store new value.
Definition at line 205 of file SRefAttr.h.
Referenced by Attributes::setBool(), Attributes::setPredefinedString(), Attributes::setReal(), Attributes::setString(), and Attributes::setUpperCaseString().
|
private |
Definition at line 96 of file SRefAttr.h.
|
mutableprivate |
Definition at line 101 of file SRefAttr.h.
|
private |
Definition at line 97 of file SRefAttr.h.
|
mutableprivate |
Definition at line 100 of file SRefAttr.h.
|
private |
Definition at line 95 of file SRefAttr.h.
|
staticprivate |
Definition at line 92 of file SRefAttr.h.