OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
Expressions::SDeferred< T > Class Template Reference

Object attribute with a ``deferred'' scalar value. More...

#include <SDeferred.h>

Inheritance diagram for Expressions::SDeferred< T >:
Inheritance graph
[legend]
Collaboration diagram for Expressions::SDeferred< T >:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from Expressions::SValue< T >
 SValue ()
 Default constructor. More...
 
 SValue (const T &val)
 Constructor. More...
 
 SValue (const SValue< T > &)
 
virtual ~SValue ()
 
template<>
void print (std::ostream &os) const
 Print value. More...
 
template<>
void print (std::ostream &os) const
 Print value. More...
 
template<>
void print (std::ostream &os) const
 Print value. More...
 
- Public Member Functions inherited from AttributeBase
 AttributeBase ()
 
virtual ~AttributeBase ()
 
std::string getImage () const
 Convert to string. More...
 
- Public Member Functions inherited from RCObject
int addReference () const
 Increment reference count. More...
 
int removeReference () const
 Decrement the reference count. More...
 
bool isShared () const
 Test for sharing. More...
 
- Public Member Functions inherited from Invalidator
virtual void invalidate ()
 Force re-evaluation. More...
 

Protected Attributes

PtrToScalar< Texpr_ptr
 Pointer to expression. More...
 
- Protected Attributes inherited from Expressions::SValue< T >
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

- Protected Member Functions inherited from RCObject
 RCObject ()
 Default constructor. More...
 
 RCObject (const RCObject &)
 Copy constructor. More...
 
virtual ~RCObject ()=0
 
RCObjectoperator= (const RCObject &right)
 

Detailed Description

template<class T>
class Expressions::SDeferred< T >

Object attribute with a ``deferred'' scalar value.

Definition at line 39 of file SDeferred.h.

Constructor & Destructor Documentation

template<class T >
Expressions::SDeferred< T >::SDeferred ( PtrToScalar< T expr)
explicit

Constructor.

Definition at line 90 of file SDeferred.h.

template<class T >
Expressions::SDeferred< T >::SDeferred ( const SDeferred< T > &  rhs)

Definition at line 84 of file SDeferred.h.

template<class T >
Expressions::SDeferred< T >::~SDeferred ( )
virtual

Definition at line 96 of file SDeferred.h.

template<class T>
Expressions::SDeferred< T >::SDeferred ( )
private

Member Function Documentation

template<class T >
SDeferred< T > * Expressions::SDeferred< T >::clone ( ) const
virtual

Make clone.

Reimplemented from Expressions::SValue< T >.

Reimplemented in Expressions::SAutomatic< T >.

Definition at line 101 of file SDeferred.h.

template<class T >
T Expressions::SDeferred< T >::evaluate ( )
virtual

Evaluate.

Reimplemented from Expressions::SValue< T >.

Reimplemented in Expressions::SAutomatic< T >.

Definition at line 107 of file SDeferred.h.

References ClassicException::what(), and ClassicException::where().

Referenced by Expressions::SAutomatic< T >::evaluate().

Here is the call graph for this function:

template<class T >
bool Expressions::SDeferred< T >::isExpression ( ) const
virtual

Return expression flag.

Reimplemented from AttributeBase.

Definition at line 144 of file SDeferred.h.

template<class T>
void Expressions::SDeferred< T >::operator= ( const SDeferred< T > &  )
private
template<class T >
void Expressions::SDeferred< T >::print ( std::ostream &  stream) const
virtual

Print the attribute value.

Reimplemented from Expressions::SValue< T >.

Definition at line 150 of file SDeferred.h.

Member Data Documentation

template<class T>
PtrToScalar<T> Expressions::SDeferred< T >::expr_ptr
protected

Pointer to expression.

Definition at line 67 of file SDeferred.h.

template<class T>
bool Expressions::SDeferred< T >::in_evaluation
mutableprivate

Definition at line 76 of file SDeferred.h.


The documentation for this class was generated from the following file: