OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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
Collaboration diagram for Expressions::ASUnary< T >:
Collaboration graph

Public Member Functions

 ASUnary (const TFunction1< T, const std::vector< T > & > &function, PtrToArray< T > &oper)
 Constructor.
 
 ASUnary (const ASUnary< T > &)
 
virtual ~ASUnary ()
 
virtual Scalar< T > * clone () const
 Make clone.
 
virtual T evaluate () const
 Evaluate expression.
 
virtual void print (std::ostream &, int precedence=99) const
 Print expression.
 
virtual bool isConstant () const
 Test for constant.
 

Static Public Member Functions

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

Private Member Functions

 ASUnary ()
 
void operator= (const ASUnary &)
 

Private Attributes

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

Detailed Description

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

A scalar expression with one array operand.

Definition at line 40 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 85 of file ASUnary.h.

◆ ASUnary() [2/3]

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

Definition at line 81 of file ASUnary.h.

◆ ~ASUnary()

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

Definition at line 90 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 ( ) const
inlinevirtual

Make clone.

Implements Expressions::Scalar< T >.

Definition at line 93 of file ASUnary.h.

◆ evaluate()

template<class T >
T Expressions::ASUnary< T >::evaluate ( ) const
inlinevirtual

Evaluate expression.

Implements Expressions::Scalar< T >.

Definition at line 98 of file ASUnary.h.

◆ isConstant()

template<class T >
bool Expressions::Scalar< T >::isConstant ( ) const
inlinevirtualinherited

Test for constant.

Reimplemented in Expressions::SConstant< T >.

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

◆ 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 120 of file ASUnary.h.

References Expressions::PtrToScalar< T >::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 140 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 71 of file ASUnary.h.

◆ opr

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

Definition at line 74 of file ASUnary.h.


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