OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
Expressions::AValue< T > Class Template Reference

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

#include <AValue.h>

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

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.
int addReference () const
 Increment reference count.
int removeReference () const
 Decrement the reference count.
bool isShared () const
 Test for sharing.
virtual void invalidate ()
 Force re-evaluation.

Protected Attributes

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

Private Member Functions

void operator= (const AValue< T > &)

Private Attributes

int refCount

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 76 of file AValue.h.

References value.

Referenced by Expressions::ADeferred< T >::ADeferred(), Expressions::ADeferred< T >::ADeferred(), Expressions::ADeferred< T >::ADeferred(), Expressions::ADeferred< T >::ADeferred(), Expressions::ADeferred< T >::ADeferred(), AValue(), clone(), operator=(), and print().

Here is the caller graph for this function:

◆ AValue() [2/3]

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

Constructor.

Definition at line 88 of file AValue.h.

References value.

◆ AValue() [3/3]

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

References AValue().

Here is the call graph for this function:

◆ ~AValue()

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

Definition at line 94 of file AValue.h.

Member Function Documentation

◆ addReference()

int RCObject::addReference ( ) const
inlineinherited

Increment reference count.

Definition at line 83 of file RCObject.h.

References refCount.

Referenced by Pointer< Object >::operator=(), Pointer< Object >::operator=(), and Pointer< Object >::unique().

Here is the caller graph for this function:

◆ 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 99 of file AValue.h.

References AValue(), and value.

Here is the call graph for this function:

◆ 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 105 of file AValue.h.

References value.

◆ getImage()

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

Convert to string.

Definition at line 34 of file AttributeBase.cpp.

References print().

Referenced by Expressions::ADeferred< T >::evaluate(), Expressions::SDeferred< T >::evaluate(), and Expressions::SRefAttr< T >::evaluate().

Here is the call graph for this function:
Here is the caller 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 42 of file AttributeBase.cpp.

Referenced by OpalElement::printMultipoleStrength().

Here is the caller graph for this function:

◆ isShared()

bool RCObject::isShared ( ) const
inlineinherited

Test for sharing.

Definition at line 93 of file RCObject.h.

References refCount.

◆ operator=()

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

References AValue().

Here is the call graph for this function:

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

Referenced by print().

Here is the caller graph for this function:

◆ print() [2/5]

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

Print value.

Implements AttributeBase.

Definition at line 164 of file AValue.h.

References AValue(), print(), and value.

Here is the call graph for this function:

◆ print() [3/5]

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

Print value.

Implements AttributeBase.

Definition at line 148 of file AValue.h.

References value.

◆ print() [4/5]

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

Print value.

Implements AttributeBase.

Definition at line 130 of file AValue.h.

References value.

◆ print() [5/5]

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

Print value.

Implements AttributeBase.

Definition at line 114 of file AValue.h.

References value.

◆ removeReference()

int RCObject::removeReference ( ) const
inlineinherited

Decrement the reference count.

Definition at line 88 of file RCObject.h.

References refCount.

Member Data Documentation

◆ refCount

int RCObject::refCount
mutableprivateinherited

Definition at line 76 of file RCObject.h.

Referenced by addReference(), isShared(), RCObject(), RCObject(), and removeReference().

◆ value

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

The value of the attribute.

Definition at line 63 of file AValue.h.

Referenced by AValue(), AValue(), clone(), Expressions::AAutomatic< T >::evaluate(), Expressions::ADeferred< T >::evaluate(), evaluate(), and print().


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