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

An array expression defined by a list of scalar expressions. More...

#include <AList.h>

Inheritance diagram for Expressions::AList< T >:
Inheritance graph
[legend]
Collaboration diagram for Expressions::AList< T >:
Collaboration graph
[legend]

Public Member Functions

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

Protected Attributes

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

Private Member Functions

void operator= (const AList &)
 

Detailed Description

template<class T>
class Expressions::AList< T >

An array expression defined by a list of scalar expressions.

Definition at line 36 of file AList.h.

Constructor & Destructor Documentation

◆ AList() [1/3]

template<class T >
Expressions::AList< T >::AList

Default constructor.

Definition at line 76 of file AList.h.

◆ AList() [2/3]

template<class T >
Expressions::AList< T >::AList ( const ArrayOfPtrs< T > &  value)
explicit

Constructor.

Definition at line 89 of file AList.h.

◆ AList() [3/3]

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

Definition at line 82 of file AList.h.

◆ ~AList()

template<class T >
Expressions::AList< T >::~AList
virtual

Definition at line 95 of file AList.h.

Member Function Documentation

◆ clone()

template<class T >
OArray< T > * Expressions::AList< T >::clone
virtual

Make clone.

Implements Expressions::OArray< T >.

Reimplemented in Expressions::ABinary< T, U >, and Expressions::AUnary< T, U >.

Definition at line 100 of file AList.h.

◆ evaluate()

template<class T >
std::vector< T > Expressions::AList< T >::evaluate
virtual

Evaluate.

Implements Expressions::OArray< T >.

Reimplemented in Expressions::ABinary< T, U >, and Expressions::AUnary< T, U >.

Definition at line 106 of file AList.h.

References Attrib::Legacy::Distribution::T.

◆ operator=()

template<class T >
void Expressions::AList< T >::operator= ( const AList< T > &  )
private

◆ print()

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

Print array expression.

Implements Expressions::OArray< T >.

Reimplemented in Expressions::AUnary< T, U >, and Expressions::ABinary< T, U >.

Definition at line 118 of file AList.h.

Member Data Documentation

◆ itsValue

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

The vector of expressions.

Definition at line 63 of file AList.h.


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