OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
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 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

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

Constructor.

Definition at line 36 of file SHash.cpp.

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

Definition at line 30 of file SHash.cpp.

Expressions::SHash::~SHash ( )
virtual

Definition at line 41 of file SHash.cpp.

Expressions::SHash::SHash ( )
private

Member Function Documentation

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:

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:

void Expressions::SHash::operator= ( const SHash )
private
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

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: