OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Expressions::AValue< T > Class Template Reference

Object attribute with a constant array value. More...

#include <AValue.h>

Inheritance diagram for Expressions::AValue< T >:
Inheritance graph
Collaboration diagram for Expressions::AValue< T >:
Collaboration graph

Public Member Functions

 AValue ()
 Default constructor.
 
 AValue (const std::vector< T > &val)
 Constructor.
 
 AValue (const AValue &)
 
virtual ~AValue ()
 
virtual AValueclone () const
 Make clone.
 
virtual std::vector< Tevaluate ()
 Evaluate.
 
virtual void print (std::ostream &) const
 Print the attribute 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.
 
void print (std::ostream &os) const
 Print value.
 
std::string getImage () const
 Convert to string.
 
virtual bool isExpression () const
 Test for expression.
 
virtual void invalidate ()
 Force re-evaluation.
 

Protected Attributes

std::vector< Tvalue
 The value of the attribute.
 

Private Member Functions

void operator= (const AValue< T > &)
 

Detailed Description

template<class T>
class Expressions::AValue< T >

Object attribute with a constant array value.

Definition at line 35 of file AValue.h.

Constructor & Destructor Documentation

◆ AValue() [1/3]

template<class T >
Expressions::AValue< T >::AValue ( )

Default constructor.

Definition at line 71 of file AValue.h.

◆ AValue() [2/3]

template<class T >
Expressions::AValue< T >::AValue ( const std::vector< T > &  val)
explicit

Constructor.

Definition at line 77 of file AValue.h.

◆ AValue() [3/3]

template<class T >
Expressions::AValue< T >::AValue ( const AValue< T > &  )

◆ ~AValue()

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

Definition at line 80 of file AValue.h.

Member Function Documentation

◆ clone()

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

Make clone.

Implements AttributeBase.

Reimplemented in Expressions::AAutomatic< T >, and Expressions::ADeferred< T >.

Definition at line 83 of file AValue.h.

◆ evaluate()

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

Evaluate.

Reimplemented in Expressions::AAutomatic< T >, and Expressions::ADeferred< T >.

Definition at line 88 of file AValue.h.

◆ getImage()

std::string AttributeBase::getImage ( ) const
inherited

Convert to string.

Definition at line 29 of file AttributeBase.cpp.

References AttributeBase::print().

Here is the call graph for this function:

◆ invalidate()

void Invalidator::invalidate ( )
virtualinherited

◆ isExpression()

bool AttributeBase::isExpression ( ) const
virtualinherited

Test for expression.

Reimplemented in Expressions::ADeferred< T >, and Expressions::SDeferred< T >.

Definition at line 36 of file AttributeBase.cpp.

Referenced by OpalElement::printMultipoleStrength().

◆ operator=()

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

◆ print() [1/5]

template<class T >
virtual void Expressions::AValue< T >::print ( std::ostream &  ) const
virtual

Print the attribute value.

Implements AttributeBase.

Reimplemented in Expressions::ADeferred< T >.

◆ print() [2/5]

void Expressions::AValue< bool >::print ( std::ostream &  ) const
inlinevirtual

Print value.

Implements AttributeBase.

Definition at line 96 of file AValue.h.

◆ print() [3/5]

void Expressions::AValue< double >::print ( std::ostream &  ) const
inlinevirtual

Print value.

Implements AttributeBase.

Definition at line 111 of file AValue.h.

◆ print() [4/5]

void Expressions::AValue< std::string >::print ( std::ostream &  ) const
inlinevirtual

Print value.

Implements AttributeBase.

Definition at line 128 of file AValue.h.

◆ print() [5/5]

void Expressions::AValue< std::list< Token > >::print ( std::ostream &  ) const
inlinevirtual

Print value.

Implements AttributeBase.

Definition at line 143 of file AValue.h.

Member Data Documentation

◆ value

template<class T >
std::vector<T> Expressions::AValue< T >::value
mutableprotected

The value of the attribute.

Definition at line 60 of file AValue.h.


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