OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Expressions::ARefExpr< T > Class Template Reference

An expression defined as a reference to an array. More...

#include <ARefExpr.h>

Inheritance diagram for Expressions::ARefExpr< T >:
Inheritance graph
Collaboration diagram for Expressions::ARefExpr< T >:
Collaboration graph

Public Member Functions

 ARefExpr (const std::string &objName, const std::string &attName)
 Constructor.
 
 ARefExpr (const ARefExpr< T > &rhs)
 
virtual ~ARefExpr ()
 
virtual OArray< T > * clone () const
 Make clone.
 
virtual std::vector< Tevaluate () const
 Evaluate the reference and return the value referred to.
 
virtual void print (std::ostream &os, int precedence=99) const
 Print expression.
 
virtual bool isConstant () const
 Test for constant.
 
virtual void invalidate ()
 Force re-evaluation.
 

Private Member Functions

void operator= (const ARefExpr &)
 
void fill () const
 
const std::string getImage () const
 

Private Attributes

const std::string obj_name
 
const std::string att_name
 
ObjectitsObject
 
AttributeitsAttr
 

Detailed Description

template<class T>
class Expressions::ARefExpr< T >

An expression defined as a reference to an array.

Definition at line 41 of file ARefExpr.h.

Constructor & Destructor Documentation

◆ ARefExpr() [1/2]

template<class T >
Expressions::ARefExpr< T >::ARefExpr ( const std::string &  objName,
const std::string &  attName 
)

Constructor.

Definition at line 83 of file ARefExpr.h.

◆ ARefExpr() [2/2]

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

Definition at line 87 of file ARefExpr.h.

◆ ~ARefExpr()

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

Definition at line 96 of file ARefExpr.h.

Member Function Documentation

◆ clone()

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

Make clone.

Implements Expressions::OArray< T >.

Definition at line 101 of file ARefExpr.h.

◆ evaluate()

template<class T >
std::vector< T > Expressions::ARefExpr< T >::evaluate ( ) const
inlinevirtual

Evaluate the reference and return the value referred to.

Implements Expressions::OArray< T >.

Definition at line 106 of file ARefExpr.h.

◆ fill()

template<class T >
void Expressions::ARefExpr< T >::fill ( ) const
private

Definition at line 139 of file ARefExpr.h.

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

Here is the call graph for this function:

◆ getImage()

template<class T >
const std::string Expressions::ARefExpr< T >::getImage ( ) const
private

Definition at line 125 of file ARefExpr.h.

◆ invalidate()

void Invalidator::invalidate ( )
virtualinherited

◆ isConstant()

template<class T >
bool Expressions::OArray< T >::isConstant ( ) const
inlinevirtualinherited

Test for constant.

Definition at line 304 of file AbstractObjects/Expressions.h.

◆ operator=()

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

◆ print()

template<class T >
void Expressions::ARefExpr< T >::print ( std::ostream &  os,
int  precedence = 99 
) const
virtual

Print expression.

Implements Expressions::OArray< T >.

Definition at line 133 of file ARefExpr.h.

Member Data Documentation

◆ att_name

template<class T >
const std::string Expressions::ARefExpr< T >::att_name
private

Definition at line 72 of file ARefExpr.h.

◆ itsAttr

template<class T >
Attribute* Expressions::ARefExpr< T >::itsAttr
mutableprivate

Definition at line 76 of file ARefExpr.h.

◆ itsObject

template<class T >
Object* Expressions::ARefExpr< T >::itsObject
mutableprivate

Definition at line 75 of file ARefExpr.h.

◆ obj_name

template<class T >
const std::string Expressions::ARefExpr< T >::obj_name
private

Definition at line 71 of file ARefExpr.h.


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