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

Object attribute with a constant scalar value. More...

#include <SValue.h>

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

Public Member Functions

 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...
 
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...
 
virtual bool isExpression () const
 Test for expression. 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

T value
 The value of the attribute. More...
 

Private Member Functions

void operator= (const SValue< T > &)
 

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::SValue< T >

Object attribute with a constant scalar value.

Definition at line 34 of file SValue.h.

Constructor & Destructor Documentation

template<class T >
Expressions::SValue< T >::SValue ( )

Default constructor.

Definition at line 75 of file SValue.h.

template<class T >
Expressions::SValue< T >::SValue ( const T val)
explicit

Constructor.

Definition at line 87 of file SValue.h.

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

Definition at line 81 of file SValue.h.

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

Definition at line 93 of file SValue.h.

Member Function Documentation

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

Make clone.

Implements AttributeBase.

Reimplemented in Expressions::SDeferred< T >, and Expressions::SAutomatic< T >.

Definition at line 98 of file SValue.h.

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

Evaluate.

Reimplemented in Expressions::SDeferred< T >, and Expressions::SAutomatic< T >.

Definition at line 104 of file SValue.h.

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

Print the attribute value.

Implements AttributeBase.

Reimplemented in Expressions::SDeferred< T >.

Definition at line 113 of file SValue.h.

template<>
void Expressions::SValue< std::list< Token > >::print ( std::ostream &  ) const
inlinevirtual

Print value.

Implements AttributeBase.

Definition at line 120 of file SValue.h.

template<>
void Expressions::SValue< bool >::print ( std::ostream &  ) const
inlinevirtual

Print value.

Implements AttributeBase.

Definition at line 131 of file SValue.h.

template<>
void Expressions::SValue< std::string >::print ( std::ostream &  ) const
inlinevirtual

Print value.

Implements AttributeBase.

Definition at line 138 of file SValue.h.

Member Data Documentation

template<class T>
T Expressions::SValue< T >::value
mutableprotected

The value of the attribute.

Definition at line 62 of file SValue.h.


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