OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
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< Tevaluate () 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 ()
 
- Public Member Functions inherited from Expressions::OArray< T >
 OArray ()
 
 OArray (const OArray &)
 
virtual ~OArray ()
 
virtual bool isConstant () const
 Test for constant. 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< TitsValue
 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

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.

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

Definition at line 78 of file AUnary.h.

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

Definition at line 90 of file AUnary.h.

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

Member Function Documentation

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

Make clone.

Reimplemented from Expressions::AList< T >.

Definition at line 95 of file AUnary.h.

template<class T , class U >
std::vector< T > Expressions::AUnary< T, U >::evaluate ( ) const
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:

template<class T, class U>
void Expressions::AUnary< T, U >::operator= ( const AUnary< T, U > &  )
private
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

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

Definition at line 67 of file AUnary.h.

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: