OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Private Member Functions | List of all members
AttributeBase Class Referenceabstract

Abstract base class for attribute values of different types. More...

#include <AttributeBase.h>

Inheritance diagram for AttributeBase:
Inheritance graph
[legend]
Collaboration diagram for AttributeBase:
Collaboration graph
[legend]

Public Member Functions

 AttributeBase ()
 
virtual ~AttributeBase ()
 
virtual AttributeBaseclone () const =0
 Make clone. More...
 
std::string getImage () const
 Convert to string. More...
 
virtual bool isExpression () const
 Test for expression. More...
 
virtual void print (std::ostream &) const =0
 Print value. More...
 
- Public Member Functions inherited from RCObject
int addReference () const
 Increment reference count. More...
 
int removeReference () const
 Decrement the reference count. More...
 
bool isShared () const
 Test for sharing. More...
 
- Public Member Functions inherited from Invalidator
virtual void invalidate ()
 Force re-evaluation. More...
 

Private Member Functions

 AttributeBase (AttributeBase &)
 
void operator= (AttributeBase &)
 

Additional Inherited Members

- Protected Member Functions inherited from RCObject
 RCObject ()
 Default constructor. More...
 
 RCObject (const RCObject &)
 Copy constructor. More...
 
virtual ~RCObject ()=0
 
RCObjectoperator= (const RCObject &right)
 

Detailed Description

Abstract base class for attribute values of different types.

Definition at line 32 of file AttributeBase.h.

Constructor & Destructor Documentation

◆ AttributeBase() [1/2]

AttributeBase::AttributeBase ( )

Definition at line 25 of file AttributeBase.cpp.

◆ ~AttributeBase()

AttributeBase::~AttributeBase ( )
virtual

Definition at line 30 of file AttributeBase.cpp.

◆ AttributeBase() [2/2]

AttributeBase::AttributeBase ( AttributeBase )
private

Member Function Documentation

◆ clone()

virtual AttributeBase* AttributeBase::clone ( ) const
pure virtual

◆ getImage()

std::string AttributeBase::getImage ( ) const

Convert to string.

Definition at line 34 of file AttributeBase.cpp.

References print().

Referenced by Attribute::getImage().

Here is the call graph for this function:

◆ isExpression()

bool AttributeBase::isExpression ( ) const
virtual

Test for expression.

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

Definition at line 42 of file AttributeBase.cpp.

Referenced by Attribute::isExpression(), and OpalElement::printMultipoleStrength().

◆ operator=()

void AttributeBase::operator= ( AttributeBase )
private

◆ print()

virtual void AttributeBase::print ( std::ostream &  ) const
pure virtual

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