OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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
Collaboration diagram for Expressions::SAutomatic< T >:
Collaboration graph

Public Member Functions

 SAutomatic (PtrToScalar< T > expr)
 Constructor.
 
 SAutomatic (const SAutomatic< T > &)
 
virtual ~SAutomatic ()
 
virtual SAutomatic< T > * clone () const
 Make clone.
 
virtual T evaluate ()
 Evaluate.
 
virtual void invalidate ()
 Invalidate.
 
virtual bool isExpression () const
 Return expression flag.
 
virtual void print (std::ostream &) const
 Print the attribute value.
 
std::string getImage () const
 Convert to string.
 

Protected Attributes

PtrToScalar< Texpr_ptr
 Pointer to expression.
 
T value
 The value of the attribute.
 

Private Member Functions

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

Private Attributes

bool is_known
 
bool in_evaluation
 

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

◆ SAutomatic() [1/3]

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

Constructor.

Definition at line 76 of file SAutomatic.h.

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

Here is the call graph for this function:

◆ SAutomatic() [2/3]

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

Definition at line 71 of file SAutomatic.h.

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

Here is the call graph for this function:

◆ ~SAutomatic()

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

Definition at line 81 of file SAutomatic.h.

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

Here is the call graph for this function:

◆ SAutomatic() [3/3]

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

Member Function Documentation

◆ clone()

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

Make clone.

Reimplemented from Expressions::SDeferred< T >.

Definition at line 87 of file SAutomatic.h.

◆ evaluate()

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

Evaluate.

Reimplemented from Expressions::SDeferred< T >.

Definition at line 92 of file SAutomatic.h.

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

Here is the call graph for this function:

◆ getImage()

std::string AttributeBase::getImage ( ) const
inherited

Convert to string.

Definition at line 29 of file AttributeBase.cpp.

References AttributeBase::print().

Here is the call graph for this function:

◆ invalidate()

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

Invalidate.

Reimplemented from Invalidator.

Definition at line 102 of file SAutomatic.h.

◆ isExpression()

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

Return expression flag.

Reimplemented from AttributeBase.

Definition at line 125 of file SDeferred.h.

◆ operator=()

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

◆ print()

template<class T >
void Expressions::SDeferred< T >::print ( std::ostream &  stream) const
virtualinherited

Print the attribute value.

Reimplemented from Expressions::SValue< T >.

Definition at line 130 of file SDeferred.h.

Member Data Documentation

◆ expr_ptr

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

Pointer to expression.

Definition at line 64 of file SDeferred.h.

◆ in_evaluation

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

Definition at line 72 of file SDeferred.h.

◆ is_known

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

Definition at line 64 of file SAutomatic.h.

◆ value

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

The value of the attribute.

Definition at line 59 of file SValue.h.


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