OPAL (Object Oriented Parallel Accelerator Library) 2024.2
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.
 
 SValue (const T &val)
 Constructor.
 
 SValue (const SValue< T > &)
 
virtual ~SValue ()
 
virtual SValue< T > * clone () const
 Make clone.
 
virtual T evaluate ()
 Evaluate.
 
virtual void print (std::ostream &) const
 Print the attribute value.
 
void print (std::ostream &os) const
 Print value.
 
void print (std::ostream &os) const
 Print value.
 
void print (std::ostream &os) const
 Print value.
 
- Public Member Functions inherited from AttributeBase
 AttributeBase ()
 
virtual ~AttributeBase ()
 
std::string getImage () const
 Convert to string.
 
virtual bool isExpression () const
 Test for expression.
 
- Public Member Functions inherited from RCObject
int addReference () const
 Increment reference count.
 
int removeReference () const
 Decrement the reference count.
 
bool isShared () const
 Test for sharing.
 
- Public Member Functions inherited from Invalidator
virtual void invalidate ()
 Force re-evaluation.
 

Protected Attributes

value
 The value of the attribute.
 

Private Member Functions

void operator= (const SValue< T > &)
 

Additional Inherited Members

- Protected Member Functions inherited from RCObject
 RCObject ()
 Default constructor.
 
 RCObject (const RCObject &)
 Copy constructor.
 
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

◆ SValue() [1/3]

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

Default constructor.

Definition at line 75 of file SValue.h.

◆ SValue() [2/3]

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

Constructor.

Definition at line 87 of file SValue.h.

◆ SValue() [3/3]

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

Definition at line 81 of file SValue.h.

◆ ~SValue()

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

Definition at line 93 of file SValue.h.

Member Function Documentation

◆ clone()

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

Make clone.

Implements AttributeBase.

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

Definition at line 98 of file SValue.h.

◆ evaluate()

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

Evaluate.

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

Definition at line 104 of file SValue.h.

◆ operator=()

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

◆ print() [1/4]

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.

◆ print() [2/4]

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

Print value.

Implements AttributeBase.

Definition at line 120 of file SValue.h.

◆ print() [3/4]

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

Print value.

Implements AttributeBase.

Definition at line 131 of file SValue.h.

◆ print() [4/4]

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

◆ value

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: