OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
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
Collaboration diagram for Expressions::AUnary< T, U >:
Collaboration graph

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...
 
virtual bool isConstant () const
 Test for constant. More...
 

Protected Attributes

ArrayOfPtrs< T > itsValue
 The vector of expressions. More...
 

Private Member Functions

 AUnary ()
 
void operator= (const AUnary &)
 

Private Attributes

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

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:

◆ isConstant()

template<class T >
bool Expressions::OArray< T >::isConstant
inlinevirtualinherited

Test for constant.

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

◆ 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.

◆ itsValue

template<class T >
ArrayOfPtrs<T> Expressions::AList< T >::itsValue
protectedinherited

The vector of expressions.

Definition at line 63 of file AList.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: