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

An array expression with one array operand. More...

#include <AUnary.h>

Inheritance diagram for Expressions::AUnary< T, U >:
Inheritance graph
[legend]
Collaboration diagram for Expressions::AUnary< T, U >:
Collaboration graph
[legend]

Public Member Functions

 AUnary (const TFunction1< T, U > &function, PtrToArray< U > operand)
 Constructor. More...
 
 AUnary (const AUnary< T, U > &)
 
virtual ~AUnary ()
 
virtual OArray< T > * clone () const
 Make clone. More...
 
virtual std::vector< T > evaluate () const
 Evaluate. More...
 
virtual void print (std::ostream &, int precedence=99) const
 Print expression. More...
 
- Public Member Functions inherited from Expressions::AList< T >
 AList ()
 Default constructor. More...
 
 AList (const ArrayOfPtrs< T > &)
 Constructor. More...
 
 AList (const AList &)
 
virtual ~AList ()
 
virtual OArray< T > * clone () const
 Make clone. More...
 
virtual std::vector< T > evaluate () const
 Evaluate. More...
 
virtual void print (std::ostream &, int precedence=99) const
 Print array expression. More...
 
- Public Member Functions inherited from Expressions::OArray< T >
 OArray ()
 
 OArray (const OArray &)
 
virtual ~OArray ()
 
virtual OArray< T > * clone () const =0
 Copy expression. More...
 
virtual std::vector< 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

 AUnary ()
 
void operator= (const AUnary &)
 

Private Attributes

const TFunction1< T, U > & fun
 
PtrToArray< U > opr
 

Additional Inherited Members

- Protected Attributes inherited from Expressions::AList< T >
ArrayOfPtrs< T > itsValue
 The vector of expressions. More...
 

Detailed Description

template<class T, class U>
class Expressions::AUnary< T, U >

An array expression with one array operand.

Definition at line 40 of file AUnary.h.

Constructor & Destructor Documentation

◆ AUnary() [1/3]

template<class T , class U >
Expressions::AUnary< T, U >::AUnary ( const TFunction1< T, U > &  function,
PtrToArray< U >  operand 
)
inline

Constructor.

Definition at line 84 of file AUnary.h.

◆ AUnary() [2/3]

template<class T , class U >
Expressions::AUnary< T, U >::AUnary ( const AUnary< T, U > &  rhs)
inline

Definition at line 78 of file AUnary.h.

◆ ~AUnary()

template<class T , class U >
Expressions::AUnary< T, U >::~AUnary
inlinevirtual

Definition at line 90 of file AUnary.h.

◆ AUnary() [3/3]

template<class T , class U >
Expressions::AUnary< T, U >::AUnary ( )
private

Member Function Documentation

◆ clone()

template<class T , class U >
OArray< T > * Expressions::AUnary< T, U >::clone
inlinevirtual

Make clone.

Reimplemented from Expressions::AList< T >.

Definition at line 95 of file AUnary.h.

◆ evaluate()

template<class T , class U >
std::vector< T > Expressions::AUnary< T, U >::evaluate
inlinevirtual

Evaluate.

Reimplemented from Expressions::AList< T >.

Definition at line 101 of file AUnary.h.

References arg().

Here is the call graph for this function:

◆ operator=()

template<class T , class U >
void Expressions::AUnary< T, U >::operator= ( const AUnary< T, U > &  )
private

◆ print()

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

Print expression.

Reimplemented from Expressions::AList< T >.

Definition at line 128 of file AUnary.h.

Member Data Documentation

◆ fun

template<class T , class U >
const TFunction1<T, U>& Expressions::AUnary< T, U >::fun
private

Definition at line 67 of file AUnary.h.

◆ opr

template<class T , class U >
PtrToArray<U> Expressions::AUnary< T, U >::opr
private

Definition at line 70 of file AUnary.h.


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