|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
Object attribute with an ``automatic'' scalar value. More...
#include <SAutomatic.h>
Public Member Functions | |
| SAutomatic (PtrToScalar< T > expr) | |
| Constructor. | |
| SAutomatic (const SAutomatic< T > &) | |
| virtual | ~SAutomatic () |
| virtual SAutomatic< T > * | clone () const |
| Make clone. | |
| virtual T | evaluate () |
| Evaluate. | |
| virtual void | invalidate () |
| Invalidate. | |
| virtual bool | isExpression () const |
| Return expression flag. | |
| virtual void | print (std::ostream &) const |
| Print the attribute 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. | |
Protected Attributes | |
| PtrToScalar< T > | expr_ptr |
| Pointer to expression. | |
| T | value |
| The value of the attribute. | |
Private Member Functions | |
| SAutomatic () | |
| void | operator= (const SAutomatic< T > &) |
Private Attributes | |
| bool | is_known |
| bool | in_evaluation |
| int | refCount |
Object attribute with an ``automatic'' scalar value.
Definition at line 38 of file SAutomatic.h.
|
explicit |
Constructor.
Definition at line 82 of file SAutomatic.h.
References OpalData::getInstance(), is_known, OpalData::registerExpression(), and Expressions::SDeferred< T >::SDeferred().
Referenced by clone(), operator=(), and SAutomatic().
| Expressions::SAutomatic< T >::SAutomatic | ( | const SAutomatic< T > & | rhs | ) |
Definition at line 75 of file SAutomatic.h.
References OpalData::getInstance(), is_known, OpalData::registerExpression(), SAutomatic(), and Expressions::SDeferred< T >::SDeferred().
|
virtual |
Definition at line 89 of file SAutomatic.h.
References OpalData::getInstance(), and OpalData::unregisterExpression().
|
private |
|
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::SDeferred< T >.
Definition at line 96 of file SAutomatic.h.
References SAutomatic().
|
virtual |
Evaluate.
Reimplemented from Expressions::SDeferred< T >.
Definition at line 102 of file SAutomatic.h.
References Expressions::SDeferred< T >::evaluate(), is_known, and Expressions::SValue< T >::value.
|
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().
|
virtual |
Invalidate.
Reimplemented from Invalidator.
Definition at line 113 of file SAutomatic.h.
References is_known.
|
virtualinherited |
Return expression flag.
Reimplemented from AttributeBase.
Definition at line 144 of file SDeferred.h.
|
inlineinherited |
|
private |
|
virtualinherited |
Print the attribute value.
Reimplemented from Expressions::SValue< T >.
Definition at line 150 of file SDeferred.h.
References expr_ptr.
|
inlineinherited |
|
protectedinherited |
Pointer to expression.
Definition at line 67 of file SDeferred.h.
Referenced by evaluate(), print(), SDeferred(), and SDeferred().
|
mutableprivateinherited |
Definition at line 76 of file SDeferred.h.
Referenced by evaluate(), SDeferred(), and SDeferred().
|
mutableprivate |
Definition at line 67 of file SAutomatic.h.
Referenced by evaluate(), invalidate(), SAutomatic(), and SAutomatic().
|
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 62 of file SValue.h.
Referenced by clone(), Expressions::SAutomatic< T >::evaluate(), Expressions::SDeferred< T >::evaluate(), evaluate(), print(), print(), SValue(), SValue(), and SValue().