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

Object attribute with an `‘automatic’' array value. More...

#include <AAutomatic.h>

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

Public Member Functions

 AAutomatic (PtrToArray< T > expr)
 Constructor.
 
 AAutomatic (ArrayOfPtrs< T > expr)
 Constructor.
 
 AAutomatic (const AAutomatic &)
 
virtual ~AAutomatic ()
 
virtual AAutomatic< T > * clone () const
 Make a clone.
 
virtual std::vector< T > evaluate ()
 Evaluate.
 
virtual void invalidate ()
 Invalidate.
 
- Public Member Functions inherited from Expressions::ADeferred< T >
 ADeferred ()
 Default constructor.
 
 ADeferred (PtrToArray< T > expr)
 Constructor.
 
 ADeferred (const std::vector< T > &val)
 Constructor.
 
 ADeferred (ArrayOfPtrs< T > expr)
 Constructor.
 
 ADeferred (const ADeferred< T > &)
 
virtual ~ADeferred ()
 
virtual bool isExpression () const
 Get expression flag.
 
virtual void print (std::ostream &) const
 Print the attribute value.
 
void setComponent (int i, const PtrToScalar< T > expr)
 Set a component of the value.
 
- Public Member Functions inherited from Expressions::AValue< T >
 AValue ()
 Default constructor.
 
 AValue (const std::vector< T > &val)
 Constructor.
 
 AValue (const AValue &)
 
virtual ~AValue ()
 
void print (std::ostream &os) const
 Print value.
 
void print (std::ostream &os) const
 Print value.
 
void print (std::ostream &os) const
 Print value.
 
void print (std::ostream &os) const
 Print value.
 
- Public Member Functions inherited from AttributeBase
 AttributeBase ()
 
virtual ~AttributeBase ()
 
std::string getImage () const
 Convert to string.
 
- Public Member Functions inherited from RCObject
int addReference () const
 Increment reference count.
 
int removeReference () const
 Decrement the reference count.
 
bool isShared () const
 Test for sharing.
 
- Public Member Functions inherited from Invalidator
virtual ~Invalidator ()=default
 

Private Member Functions

 AAutomatic ()
 
void operator= (const AAutomatic &)
 

Private Attributes

bool is_known
 

Additional Inherited Members

- Protected Member Functions inherited from RCObject
 RCObject ()
 Default constructor.
 
 RCObject (const RCObject &)
 Copy constructor.
 
virtual ~RCObject ()=0
 
RCObject & operator= (const RCObject &right)
 
- Protected Attributes inherited from Expressions::ADeferred< T >
PtrToArray< T > itsLaw
 The generating law for the array expression.
 
ArrayOfPtrs< T > itsOverrides
 Overrides for single components.
 
- Protected Attributes inherited from Expressions::AValue< T >
std::vector< T > value
 The value of the attribute.
 

Detailed Description

template<class T>
class Expressions::AAutomatic< T >

Object attribute with an `‘automatic’' array value.

Definition at line 39 of file AAutomatic.h.

Constructor & Destructor Documentation

◆ AAutomatic() [1/4]

template<class T >
Expressions::AAutomatic< T >::AAutomatic ( PtrToArray< T >  expr)
explicit

Constructor.

Definition at line 88 of file AAutomatic.h.

References OpalData::getInstance(), and OpalData::registerExpression().

Here is the call graph for this function:

◆ AAutomatic() [2/4]

template<class T >
Expressions::AAutomatic< T >::AAutomatic ( ArrayOfPtrs< T >  expr)
explicit

Constructor.

Definition at line 96 of file AAutomatic.h.

References OpalData::getInstance(), and OpalData::registerExpression().

Here is the call graph for this function:

◆ AAutomatic() [3/4]

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

Definition at line 80 of file AAutomatic.h.

References OpalData::getInstance(), and OpalData::registerExpression().

Here is the call graph for this function:

◆ ~AAutomatic()

template<class T >
Expressions::AAutomatic< T >::~AAutomatic ( )
virtual

Definition at line 104 of file AAutomatic.h.

References OpalData::getInstance(), and OpalData::unregisterExpression().

Here is the call graph for this function:

◆ AAutomatic() [4/4]

template<class T >
Expressions::AAutomatic< T >::AAutomatic ( )
private

Member Function Documentation

◆ clone()

template<class T >
AAutomatic< T > * Expressions::AAutomatic< T >::clone ( ) const
virtual

Make a clone.

Reimplemented from Expressions::ADeferred< T >.

Definition at line 111 of file AAutomatic.h.

◆ evaluate()

template<class T >
std::vector< T > Expressions::AAutomatic< T >::evaluate ( )
virtual

Evaluate.

Reimplemented from Expressions::ADeferred< T >.

Definition at line 117 of file AAutomatic.h.

References Expressions::ADeferred< T >::evaluate().

Here is the call graph for this function:

◆ invalidate()

template<class T >
void Expressions::AAutomatic< T >::invalidate ( )
virtual

Invalidate.

Reimplemented from Invalidator.

Definition at line 128 of file AAutomatic.h.

◆ operator=()

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

Member Data Documentation

◆ is_known

template<class T >
bool Expressions::AAutomatic< T >::is_known
mutableprivate

Definition at line 72 of file AAutomatic.h.


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