|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
Object attribute with a ``deferred'' array value. More...
#include <ADeferred.h>
Public Member Functions | |
| ADeferred () | |
| Default constructor. | |
| ADeferred (PtrToArray< T > expr) | |
| Constructor. | |
| ADeferred (const std::vector< T > &val) | |
| Constructor. | |
| ADeferred (ArrayOfPtrs< T > expr) | |
| Constructor. | |
| ADeferred (const ADeferred< T > &) | |
| virtual | ~ADeferred () |
| virtual ADeferred< T > * | clone () const |
| Make clone. | |
| virtual std::vector< T > | evaluate () |
| Evaluate. | |
| virtual bool | isExpression () const |
| Get expression flag. | |
| virtual void | print (std::ostream &) const |
| Print the attribute value. | |
| void | setComponent (int i, const PtrToScalar< T > expr) |
| Set a component of the value. | |
| std::string | getImage () const |
| Convert to string. | |
| int | addReference () const |
| Increment reference count. | |
| int | removeReference () const |
| Decrement the reference count. | |
| bool | isShared () const |
| Test for sharing. | |
| virtual void | invalidate () |
| Force re-evaluation. | |
Protected Attributes | |
| PtrToArray< T > | itsLaw |
| The generating law for the array expression. | |
| ArrayOfPtrs< T > | itsOverrides |
| Overrides for single components. | |
| std::vector< T > | value |
| The value of the attribute. | |
Private Member Functions | |
| void | operator= (const ADeferred< T > &) |
Private Attributes | |
| bool | in_evaluation |
| int | refCount |
Object attribute with a ``deferred'' array value.
Definition at line 40 of file ADeferred.h.
| Expressions::ADeferred< T >::ADeferred | ( | ) |
Default constructor.
Definition at line 107 of file ADeferred.h.
References Expressions::AValue< T >::AValue(), in_evaluation, itsLaw, and itsOverrides.
Referenced by Expressions::AAutomatic< T >::AAutomatic(), Expressions::AAutomatic< T >::AAutomatic(), Expressions::AAutomatic< T >::AAutomatic(), ADeferred(), clone(), and operator=().
|
explicit |
Constructor.
Definition at line 137 of file ADeferred.h.
References Expressions::AValue< T >::AValue(), in_evaluation, itsLaw, and itsOverrides.
|
explicit |
Constructor.
Definition at line 128 of file ADeferred.h.
References Expressions::AValue< T >::AValue(), in_evaluation, itsLaw, and itsOverrides.
|
explicit |
Constructor.
Definition at line 146 of file ADeferred.h.
References Expressions::AValue< T >::AValue(), in_evaluation, itsLaw, and itsOverrides.
| Expressions::ADeferred< T >::ADeferred | ( | const ADeferred< T > & | rhs | ) |
Definition at line 116 of file ADeferred.h.
References ADeferred(), Expressions::AValue< T >::AValue(), clone(), in_evaluation, itsLaw, and itsOverrides.
|
virtual |
Definition at line 155 of file ADeferred.h.
|
inlineinherited |
Increment reference count.
Definition at line 83 of file RCObject.h.
References refCount.
Referenced by Pointer< Object >::operator=(), Pointer< Object >::operator=(), and Pointer< Object >::unique().
|
virtual |
Make clone.
Reimplemented from Expressions::AValue< T >.
Reimplemented in Expressions::AAutomatic< T >.
Definition at line 160 of file ADeferred.h.
References ADeferred().
Referenced by ADeferred().
|
virtual |
Evaluate.
Reimplemented from Expressions::AValue< T >.
Reimplemented in Expressions::AAutomatic< T >.
Definition at line 166 of file ADeferred.h.
References AttributeBase::getImage(), in_evaluation, itsLaw, itsOverrides, Expressions::AValue< T >::value, OpalException::what(), and OpalException::where().
Referenced by Expressions::AAutomatic< T >::evaluate().
|
inherited |
Convert to string.
Definition at line 34 of file AttributeBase.cpp.
References print().
Referenced by Expressions::ADeferred< T >::evaluate(), Expressions::SDeferred< T >::evaluate(), and Expressions::SRefAttr< T >::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.
|
virtual |
Get expression flag.
Reimplemented from AttributeBase.
Definition at line 213 of file ADeferred.h.
References itsLaw, and itsOverrides.
|
inlineinherited |
|
private |
|
virtual |
Print the attribute value.
Reimplemented from Expressions::AValue< T >.
Definition at line 219 of file ADeferred.h.
References itsLaw, and itsOverrides.
|
inlineinherited |
| void Expressions::ADeferred< T >::setComponent | ( | int | i, |
| const PtrToScalar< T > | expr ) |
Set a component of the value.
Definition at line 242 of file ADeferred.h.
References itsOverrides.
Referenced by Attributes::BoolArray::parseComponent(), and Attributes::RealArray::parseComponent().
|
mutableprivate |
Definition at line 99 of file ADeferred.h.
Referenced by ADeferred(), ADeferred(), ADeferred(), ADeferred(), ADeferred(), and evaluate().
|
protected |
The generating law for the array expression.
Definition at line 85 of file ADeferred.h.
Referenced by ADeferred(), ADeferred(), ADeferred(), ADeferred(), ADeferred(), evaluate(), isExpression(), and print().
|
protected |
Overrides for single components.
Definition at line 91 of file ADeferred.h.
Referenced by ADeferred(), ADeferred(), ADeferred(), ADeferred(), ADeferred(), evaluate(), isExpression(), print(), and setComponent().
|
mutableprivateinherited |
Definition at line 76 of file RCObject.h.
Referenced by addReference(), isShared(), RCObject(), RCObject(), and removeReference().
|
mutableprotectedinherited |
The value of the attribute.
Definition at line 63 of file AValue.h.
Referenced by AValue(), AValue(), AValue(), clone(), Expressions::AAutomatic< T >::evaluate(), Expressions::ADeferred< T >::evaluate(), evaluate(), and print().