OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Member Functions | List of all members
Expressions::Scalar< T > Class Template Referenceabstract

A scalar expression. More...

#include <Expressions.h>

Inheritance diagram for Expressions::Scalar< T >:
Inheritance graph
[legend]

Public Member Functions

 Scalar ()
 
 Scalar (const Scalar &)
 
virtual ~Scalar ()
 
virtual Scalar< T > * clone () const =0
 Copy scalar expression. More...
 
virtual T 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

void operator= (const Scalar &)
 

Detailed Description

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

A scalar expression.

Definition at line 71 of file Expressions.h.

Constructor & Destructor Documentation

◆ Scalar() [1/2]

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

Definition at line 267 of file Expressions.h.

◆ Scalar() [2/2]

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

Definition at line 272 of file Expressions.h.

◆ ~Scalar()

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

Definition at line 277 of file Expressions.h.

Member Function Documentation

◆ clone()

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

◆ evaluate()

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

◆ isConstant()

template<class T >
bool Expressions::Scalar< T >::isConstant
inlinevirtual

Test for constant.

Reimplemented in Expressions::SConstant< T >.

Definition at line 282 of file Expressions.h.

◆ operator=()

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

◆ print()

template<class T >
virtual void Expressions::Scalar< T >::print ( std::ostream &  ,
int  precedence = 99 
) const
pure virtual

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