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

Object attribute with an ``automatic'' scalar value. More...

#include <SAutomatic.h>

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

Public Member Functions

 SAutomatic (PtrToScalar< T > expr)
 Constructor. More...
 
 SAutomatic (const SAutomatic< T > &)
 
virtual ~SAutomatic ()
 
virtual SAutomatic< T > * clone () const
 Make clone. More...
 
virtual T evaluate ()
 Evaluate. More...
 
virtual void invalidate ()
 Invalidate. More...
 
- Public Member Functions inherited from Expressions::SDeferred< T >
 SDeferred (PtrToScalar< T > expr)
 Constructor. More...
 
 SDeferred (const SDeferred< T > &)
 
virtual ~SDeferred ()
 
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...
 

Private Member Functions

 SAutomatic ()
 
void operator= (const SAutomatic< T > &)
 

Private Attributes

bool is_known
 

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)
 
- Protected Attributes inherited from Expressions::SDeferred< T >
PtrToScalar< Texpr_ptr
 Pointer to expression. More...
 
- Protected Attributes inherited from Expressions::SValue< T >
T value
 The value of the attribute. More...
 

Detailed Description

template<class T>
class Expressions::SAutomatic< T >

Object attribute with an ``automatic'' scalar value.

Definition at line 38 of file SAutomatic.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 82 of file SAutomatic.h.

References OpalData::getInstance(), and OpalData::registerExpression().

Here is the call graph for this function:

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

Definition at line 75 of file SAutomatic.h.

References OpalData::getInstance(), and OpalData::registerExpression().

Here is the call graph for this function:

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

Definition at line 89 of file SAutomatic.h.

References OpalData::getInstance(), and OpalData::unregisterExpression().

Here is the call graph for this function:

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

Member Function Documentation

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

Make clone.

Reimplemented from Expressions::SDeferred< T >.

Definition at line 96 of file SAutomatic.h.

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

Evaluate.

Reimplemented from Expressions::SDeferred< T >.

Definition at line 102 of file SAutomatic.h.

References Expressions::SDeferred< T >::evaluate().

Here is the call graph for this function:

template<class T >
void Expressions::SAutomatic< T >::invalidate ( )
virtual

Invalidate.

Reimplemented from Invalidator.

Definition at line 113 of file SAutomatic.h.

template<class T>
void Expressions::SAutomatic< T >::operator= ( const SAutomatic< T > &  )
private

Member Data Documentation

template<class T>
bool Expressions::SAutomatic< T >::is_known
mutableprivate

Definition at line 67 of file SAutomatic.h.


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