OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
Object attribute with a `‘deferred’' scalar value. More...
#include <SDeferred.h>
Public Member Functions | |
SDeferred (PtrToScalar< T > expr) | |
Constructor. More... | |
SDeferred (const SDeferred< T > &) | |
virtual | ~SDeferred () |
virtual SDeferred< T > * | clone () const |
Make clone. More... | |
virtual T | evaluate () |
Evaluate. More... | |
virtual bool | isExpression () const |
Return expression flag. More... | |
virtual void | print (std::ostream &) const |
Print the attribute value. More... | |
![]() | |
SValue () | |
Default constructor. More... | |
SValue (const T &val) | |
Constructor. More... | |
SValue (const SValue< T > &) | |
virtual | ~SValue () |
virtual SValue< T > * | clone () const |
Make clone. More... | |
virtual T | evaluate () |
Evaluate. More... | |
virtual void | print (std::ostream &) const |
Print the attribute value. More... | |
void | print (std::ostream &os) const |
Print value. More... | |
void | print (std::ostream &os) const |
Print value. More... | |
void | print (std::ostream &os) const |
Print value. More... | |
![]() | |
AttributeBase () | |
virtual | ~AttributeBase () |
virtual AttributeBase * | clone () const =0 |
Make clone. More... | |
std::string | getImage () const |
Convert to string. More... | |
virtual bool | isExpression () const |
Test for expression. More... | |
virtual void | print (std::ostream &) const =0 |
Print value. More... | |
![]() | |
int | addReference () const |
Increment reference count. More... | |
int | removeReference () const |
Decrement the reference count. More... | |
bool | isShared () const |
Test for sharing. More... | |
![]() | |
virtual void | invalidate () |
Force re-evaluation. More... | |
Protected Attributes | |
PtrToScalar< T > | expr_ptr |
Pointer to expression. More... | |
![]() | |
T | value |
The value of the attribute. More... | |
Private Member Functions | |
SDeferred () | |
void | operator= (const SDeferred< T > &) |
Private Attributes | |
bool | in_evaluation |
Additional Inherited Members | |
![]() | |
RCObject () | |
Default constructor. More... | |
RCObject (const RCObject &) | |
Copy constructor. More... | |
virtual | ~RCObject ()=0 |
RCObject & | operator= (const RCObject &right) |
Object attribute with a `‘deferred’' scalar value.
Definition at line 39 of file SDeferred.h.
|
explicit |
Constructor.
Definition at line 90 of file SDeferred.h.
Expressions::SDeferred< T >::SDeferred | ( | const SDeferred< T > & | rhs | ) |
Definition at line 84 of file SDeferred.h.
|
virtual |
Definition at line 96 of file SDeferred.h.
|
private |
|
virtual |
Make clone.
Reimplemented from Expressions::SValue< T >.
Reimplemented in Expressions::SAutomatic< T >.
Definition at line 101 of file SDeferred.h.
|
virtual |
Evaluate.
Reimplemented from Expressions::SValue< T >.
Reimplemented in Expressions::SAutomatic< T >.
Definition at line 107 of file SDeferred.h.
References OpalException::what(), and OpalException::where().
Referenced by Expressions::SAutomatic< T >::evaluate().
|
virtual |
Return expression flag.
Reimplemented from AttributeBase.
Definition at line 144 of file SDeferred.h.
|
private |
|
virtual |
Print the attribute value.
Reimplemented from Expressions::SValue< T >.
Definition at line 150 of file SDeferred.h.
|
protected |
Pointer to expression.
Definition at line 67 of file SDeferred.h.
|
mutableprivate |
Definition at line 76 of file SDeferred.h.