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

An array expression defined as a table row. More...

#include <ARow.h>

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

Public Member Functions

 ARow (const std::string &tabName, const PlaceRep &row, const std::vector< std::string > &col)
 Constructor. More...
 
 ARow (const ARow &)
 
 ~ARow ()
 
virtual OArray< double > * clone () const
 Make clone. More...
 
virtual std::vector< double > evaluate () const
 Evaluate. More...
 
virtual void print (std::ostream &os, int precedence=99) const
 Print expression. More...
 
- Public Member Functions inherited from Expressions::OArray< double >
 OArray ()
 
 OArray (const OArray &)
 
virtual ~OArray ()
 
virtual OArray< double > * clone () const=0
 Copy expression. More...
 
virtual std::vector< 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

 ARow ()
 
const ARowoperator= (const ARow &)
 

Private Attributes

const std::string tabName
 
PlaceRep position
 
const std::vector< std::string > columns
 

Detailed Description

An array expression defined as a table row.

Definition at line 35 of file ARow.h.

Constructor & Destructor Documentation

◆ ARow() [1/3]

Expressions::ARow::ARow ( const std::string &  tabName,
const PlaceRep row,
const std::vector< std::string > &  col 
)

Constructor.

Definition at line 36 of file ARow.cpp.

◆ ARow() [2/3]

Expressions::ARow::ARow ( const ARow rhs)

Definition at line 30 of file ARow.cpp.

◆ ~ARow()

Expressions::ARow::~ARow ( )

Definition at line 42 of file ARow.cpp.

◆ ARow() [3/3]

Expressions::ARow::ARow ( )
private

Referenced by clone().

Member Function Documentation

◆ clone()

OArray< double > * Expressions::ARow::clone ( ) const
virtual

Make clone.

Implements Expressions::OArray< double >.

Definition at line 46 of file ARow.cpp.

References ARow().

Here is the call graph for this function:

◆ evaluate()

std::vector< double > Expressions::ARow::evaluate ( ) const
virtual

Evaluate.

Implements Expressions::OArray< double >.

Definition at line 51 of file ARow.cpp.

References columns, Table::fill(), Table::find(), Table::getRow(), position, and tabName.

Here is the call graph for this function:

◆ operator=()

const ARow & Expressions::ARow::operator= ( const ARow )
private

◆ print()

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

Print expression.

Implements Expressions::OArray< double >.

Definition at line 58 of file ARow.cpp.

References columns, position, and tabName.

Member Data Documentation

◆ columns

const std::vector<std::string> Expressions::ARow::columns
private

Definition at line 71 of file ARow.h.

Referenced by evaluate(), and print().

◆ position

PlaceRep Expressions::ARow::position
private

Definition at line 68 of file ARow.h.

Referenced by evaluate(), and print().

◆ tabName

const std::string Expressions::ARow::tabName
private

Definition at line 65 of file ARow.h.

Referenced by evaluate(), and print().


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