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

A scalar expression with one array operand. More...

#include <ASUnary.h>

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

Public Member Functions

 ASUnary (const TFunction1< T, const std::vector< T > & > &function, PtrToArray< T > &oper)
 Constructor. More...
 
 ASUnary (const ASUnary< T > &)
 
virtual ~ASUnary ()
 
virtual Scalar< T > * clone () const
 Make clone. More...
 
virtual T evaluate () const
 Evaluate expression. More...
 
virtual void print (std::ostream &, int precedence=99) const
 Print expression. More...
 
- Public Member Functions inherited from Expressions::Scalar< T >
 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...
 

Static Public Member Functions

static PtrToScalar< T > make (const TFunction1< T, const std::vector< T > & > &function, PtrToArray< T > &oper)
 Make new expression. More...
 

Private Member Functions

 ASUnary ()
 
void operator= (const ASUnary &)
 

Private Attributes

const TFunction1< T, const std::vector< T > & > & fun
 
PtrToArray< T > opr
 

Detailed Description

template<class T>
class Expressions::ASUnary< T >

A scalar expression with one array operand.

Definition at line 41 of file ASUnary.h.

Constructor & Destructor Documentation

◆ ASUnary() [1/3]

template<class T >
Expressions::ASUnary< T >::ASUnary ( const TFunction1< T, const std::vector< T > & > &  function,
PtrToArray< T > &  oper 
)
inline

Constructor.

Definition at line 94 of file ASUnary.h.

◆ ASUnary() [2/3]

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

Definition at line 87 of file ASUnary.h.

◆ ~ASUnary()

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

Definition at line 101 of file ASUnary.h.

◆ ASUnary() [3/3]

template<class T >
Expressions::ASUnary< T >::ASUnary ( )
private

Member Function Documentation

◆ clone()

template<class T >
Scalar< T > * Expressions::ASUnary< T >::clone
inlinevirtual

Make clone.

Implements Expressions::Scalar< T >.

Definition at line 106 of file ASUnary.h.

◆ evaluate()

template<class T >
T Expressions::ASUnary< T >::evaluate
inlinevirtual

Evaluate expression.

Implements Expressions::Scalar< T >.

Definition at line 112 of file ASUnary.h.

References arg(), and Attrib::Legacy::Distribution::T.

Here is the call graph for this function:

◆ make()

template<class T >
PtrToScalar< T > Expressions::ASUnary< T >::make ( const TFunction1< T, const std::vector< T > & > &  function,
PtrToArray< T > &  oper 
)
inlinestatic

Make new expression.

Definition at line 137 of file ASUnary.h.

References PyOpal::PyPolynomialPatch::function(), and OwnPtr< Object >::release().

Here is the call graph for this function:

◆ operator=()

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

◆ print()

template<class T >
void Expressions::ASUnary< T >::print ( std::ostream &  os,
int  precedence = 99 
) const
inlinevirtual

Print expression.

Implements Expressions::Scalar< T >.

Definition at line 158 of file ASUnary.h.

Member Data Documentation

◆ fun

template<class T >
const TFunction1<T, const std::vector<T>&>& Expressions::ASUnary< T >::fun
private

Definition at line 76 of file ASUnary.h.

◆ opr

template<class T >
PtrToArray<T> Expressions::ASUnary< T >::opr
private

Definition at line 79 of file ASUnary.h.


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