OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Expressions::SHash Class Reference

A scalar expression. More...

#include <SHash.h>

Inheritance diagram for Expressions::SHash:
Inheritance graph
[legend]
Collaboration diagram for Expressions::SHash:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from Expressions::Scalar< double >
 Scalar ()
 
 Scalar (const Scalar &)
 
virtual ~Scalar ()
 
virtual Scalar< double > * clone () const=0
 Copy scalar expression. More...
 
virtual double evaluate () const=0
 Evaluate. More...
 
virtual bool isConstant () const
 Test for constant. More...
 
virtual void print (std::ostream &, int precedence=99) const=0
 Print expression. 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:

◆ 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: