OPALX (Object Oriented Parallel Accelerator Library for Exascale) MINIorX
OPALX
Expressions::ABinary< T, U > Class Template Reference

An array expression with two array operands. More...

#include <ABinary.h>

Inheritance diagram for Expressions::ABinary< T, U >:
Inheritance graph
Collaboration diagram for Expressions::ABinary< T, U >:
Collaboration graph

Public Member Functions

 ABinary (const TFunction2< T, U > &function, PtrToArray< U > left, PtrToArray< U > right)
 Constructor. More...
 
 ABinary (const ABinary< T, U > &)
 
virtual ~ABinary ()
 
virtual OArray< T > * clone () const
 Make clone. More...
 
virtual std::vector< Tevaluate () const
 Evaluate. More...
 
virtual void print (std::ostream &str, int precedence=99) const
 Print expression. More...
 
virtual bool isConstant () const
 Test for constant. More...
 

Protected Attributes

ArrayOfPtrs< TitsValue
 The vector of expressions. More...
 

Private Member Functions

 ABinary ()
 
void operator= (const ABinary &)
 

Private Attributes

const TFunction2< T, U > & fun
 
PtrToArray< U > lft
 
PtrToArray< U > rgt
 

Detailed Description

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

An array expression with two array operands.

Definition at line 41 of file ABinary.h.

Constructor & Destructor Documentation

◆ ABinary() [1/3]

template<class T , class U >
Expressions::ABinary< T, U >::ABinary ( const TFunction2< T, U > &  function,
PtrToArray< U >  left,
PtrToArray< U >  right 
)
inline

Constructor.

Definition at line 87 of file ABinary.h.

◆ ABinary() [2/3]

template<class T , class U >
Expressions::ABinary< T, U >::ABinary ( const ABinary< T, U > &  )

◆ ~ABinary()

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

Definition at line 94 of file ABinary.h.

◆ ABinary() [3/3]

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

Member Function Documentation

◆ clone()

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

Make clone.

Reimplemented from Expressions::AList< T >.

Definition at line 99 of file ABinary.h.

◆ evaluate()

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

Evaluate.

Reimplemented from Expressions::AList< T >.

Definition at line 105 of file ABinary.h.

◆ 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::ABinary< T, U >::operator= ( const ABinary< T, U > &  )
private

◆ print()

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

Print expression.

Reimplemented from Expressions::AList< T >.

Definition at line 144 of file ABinary.h.

Member Data Documentation

◆ fun

template<class T , class U >
const TFunction2<T, U>& Expressions::ABinary< T, U >::fun
private

Definition at line 69 of file ABinary.h.

◆ itsValue

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

The vector of expressions.

Definition at line 63 of file AList.h.

◆ lft

template<class T , class U >
PtrToArray<U> Expressions::ABinary< T, U >::lft
private

Definition at line 72 of file ABinary.h.

◆ rgt

template<class T , class U >
PtrToArray<U> Expressions::ABinary< T, U >::rgt
private

Definition at line 73 of file ABinary.h.


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