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

A scalar expression referring to a table cell. More...

#include <SCell.h>

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

Public Member Functions

 SCell (const std::string &tab, const PlaceRep &place, const std::string &col)
 Constructor. More...
 
virtual ~SCell ()
 
virtual Scalar< double > * clone () const
 Make clone. More...
 
virtual double evaluate () const
 Evaluate. More...
 
virtual void print (std::ostream &stream, int) 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

 SCell ()
 
void operator= (const SCell &)
 

Private Attributes

const std::string tab_name
 
const PlaceRep position
 
const std::string col_name
 
ConstChannelitsChannel
 

Detailed Description

A scalar expression referring to a table cell.

Definition at line 36 of file SCell.h.

Constructor & Destructor Documentation

Expressions::SCell::SCell ( const std::string &  tab,
const PlaceRep place,
const std::string &  col 
)

Constructor.

Definition at line 34 of file SCell.cpp.

Expressions::SCell::~SCell ( )
virtual

Definition at line 39 of file SCell.cpp.

Expressions::SCell::SCell ( )
private

Member Function Documentation

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

Make clone.

Implements Expressions::Scalar< double >.

Definition at line 44 of file SCell.cpp.

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

Evaluate.

Implements Expressions::Scalar< double >.

Definition at line 49 of file SCell.cpp.

References Table::fill(), Table::find(), and Table::getCell().

Here is the call graph for this function:

void Expressions::SCell::operator= ( const SCell )
private
void Expressions::SCell::print ( std::ostream &  stream,
int   
) const
virtual

Print expression.

Implements Expressions::Scalar< double >.

Definition at line 59 of file SCell.cpp.

Member Data Documentation

const std::string Expressions::SCell::col_name
private

Definition at line 66 of file SCell.h.

ConstChannel* Expressions::SCell::itsChannel
mutableprivate

Definition at line 69 of file SCell.h.

const PlaceRep Expressions::SCell::position
private

Definition at line 65 of file SCell.h.

const std::string Expressions::SCell::tab_name
private

Definition at line 64 of file SCell.h.


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