OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Expressions::Scalar< T > Class Template Referenceabstract

A scalar expression. More...

#include <Expressions.h>

Inheritance diagram for Expressions::Scalar< T >:
Collaboration diagram for Expressions::Scalar< T >:

Public Member Functions

 Scalar ()
 Scalar (const Scalar &)
virtual ~Scalar ()
virtual Scalar< T > * clone () const =0
 Copy scalar expression.
virtual T evaluate () const =0
 Evaluate.
virtual bool isConstant () const
 Test for constant.
virtual void print (std::ostream &, int precedence=99) const =0
 Print expression.

Private Member Functions

void operator= (const Scalar &)

Detailed Description

template<class T>
class Expressions::Scalar< T >

A scalar expression.

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

Constructor & Destructor Documentation

◆ Scalar() [1/2]

◆ Scalar() [2/2]

template<class T>
Expressions::Scalar< T >::Scalar ( const Scalar< T > & )
inline

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

References Scalar().

Here is the call graph for this function:

◆ ~Scalar()

template<class T>
Expressions::Scalar< T >::~Scalar ( )
inlinevirtual

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

Member Function Documentation

◆ clone()

template<class T>
virtual Scalar< T > * Expressions::Scalar< T >::clone ( ) const
pure virtual

Copy scalar expression.

Implemented in Expressions::ASUnary< T >, Expressions::Indexer< T >, Expressions::SBinary< T, U >, Expressions::SCell, Expressions::SConstant< T >, Expressions::SHash, Expressions::SNull< T >, Expressions::SRefExpr< T >, and Expressions::SUnary< T, U >.

References Scalar().

Here is the call graph for this function:

◆ evaluate()

◆ isConstant()

template<class T>
bool Expressions::Scalar< T >::isConstant ( ) const
inlinevirtual

Test for constant.

Reimplemented in Expressions::SConstant< T >.

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

◆ operator=()

template<class T>
void Expressions::Scalar< T >::operator= ( const Scalar< T > & )
private

References Scalar().

Here is the call graph for this function:

◆ print()


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