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

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

#include <AValue.h>

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

Public Member Functions

 AValue ()
 Default constructor. More...
 
 AValue (const std::vector< T > &val)
 Constructor. More...
 
 AValue (const AValue &)
 
virtual ~AValue ()
 
virtual AValueclone () const
 Make clone. More...
 
virtual std::vector< Tevaluate ()
 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...
 
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

std::vector< Tvalue
 The value of the attribute. More...
 

Private Member Functions

void operator= (const AValue< 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::AValue< T >

Object attribute with a constant array value.

Definition at line 35 of file AValue.h.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 76 of file AValue.h.

template<class T >
Expressions::AValue< T >::AValue ( const std::vector< T > &  val)
explicit

Constructor.

Definition at line 88 of file AValue.h.

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

Definition at line 82 of file AValue.h.

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

Definition at line 94 of file AValue.h.

Member Function Documentation

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

Make clone.

Implements AttributeBase.

Reimplemented in Expressions::ADeferred< T >, and Expressions::AAutomatic< T >.

Definition at line 99 of file AValue.h.

template<class T >
std::vector< T > Expressions::AValue< T >::evaluate ( )
virtual

Evaluate.

Reimplemented in Expressions::ADeferred< T >, and Expressions::AAutomatic< T >.

Definition at line 105 of file AValue.h.

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

Print the attribute value.

Implements AttributeBase.

Reimplemented in Expressions::ADeferred< T >.

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

Print value.

Implements AttributeBase.

Definition at line 114 of file AValue.h.

template<>
void Expressions::AValue< double >::print ( std::ostream &  ) const
inlinevirtual

Print value.

Implements AttributeBase.

Definition at line 130 of file AValue.h.

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

Print value.

Implements AttributeBase.

Definition at line 148 of file AValue.h.

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

Print value.

Implements AttributeBase.

Definition at line 164 of file AValue.h.

Member Data Documentation

template<class T>
std::vector<T> Expressions::AValue< T >::value
mutableprotected

The value of the attribute.

Definition at line 63 of file AValue.h.


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