OPALX (Object Oriented Parallel Accelerator Library for Exascale) MINIorX
OPALX
Expressions::SHash Class Reference

A scalar expression. More...

#include <SHash.h>

Inheritance diagram for Expressions::SHash:
Inheritance graph
Collaboration diagram for Expressions::SHash:
Collaboration graph

Public Member Functions

 SHash (const ATable &)
 Constructor. More...
 
 SHash (const SHash &)
 
virtual ~SHash ()
 
virtual Scalar< double > * clone () const
 Make clone. More...
 
virtual double evaluate () const
 Evaluate. More...
 
virtual void print (std::ostream &str, int precedence=99) const
 Print expression. More...
 
virtual bool isConstant () const
 Test for constant. More...
 

Private Member Functions

 SHash ()
 
void operator= (const SHash &)
 

Private Attributes

const ATableitsTable
 

Detailed Description

A scalar expression.

Definition at line 37 of file SHash.h.

Constructor & Destructor Documentation

◆ SHash() [1/3]

Expressions::SHash::SHash ( const ATable table)
explicit

Constructor.

Definition at line 36 of file SHash.cpp.

◆ SHash() [2/3]

Expressions::SHash::SHash ( const SHash rhs)

Definition at line 30 of file SHash.cpp.

◆ ~SHash()

Expressions::SHash::~SHash ( )
virtual

Definition at line 41 of file SHash.cpp.

◆ SHash() [3/3]

Expressions::SHash::SHash ( )
private

Member Function Documentation

◆ clone()

Scalar< double > * Expressions::SHash::clone ( ) const
virtual

Make clone.

Implements Expressions::Scalar< double >.

Definition at line 45 of file SHash.cpp.

References Expressions::ATable::getHash(), and itsTable.

Here is the call graph for this function:

◆ evaluate()

double Expressions::SHash::evaluate ( ) const
virtual

Evaluate.

Implements Expressions::Scalar< double >.

Definition at line 50 of file SHash.cpp.

References Expressions::ATable::getHash(), and itsTable.

Here is the call graph for this function:

◆ isConstant()

bool Expressions::Scalar< double >::isConstant
inlinevirtualinherited

Test for constant.

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

◆ operator=()

void Expressions::SHash::operator= ( const SHash )
private

◆ print()

void Expressions::SHash::print ( std::ostream &  str,
int  precedence = 99 
) const
virtual

Print expression.

Implements Expressions::Scalar< double >.

Definition at line 55 of file SHash.cpp.

Member Data Documentation

◆ itsTable

const ATable& Expressions::SHash::itsTable
private

Definition at line 66 of file SHash.h.

Referenced by clone(), and evaluate().


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