OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Attributes | List of all members
ElementImage Class Reference

An image of an element. More...

#include <ElementImage.h>

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

Public Member Functions

 ElementImage (const std::string &name, const std::string &type, const AttributeSet &map)
 Constructor. More...
 
 ElementImage ()
 
 ElementImage (const ElementImage &)
 
virtual ~ElementImage ()
 
const ElementImageoperator= (const ElementImage &)
 Assignment operator. More...
 
void setName (const std::string &name)
 Set element name. More...
 
const std::string & getName () const
 Get element name. More...
 
void setType (const std::string &type)
 Set element type std::string. More...
 
const std::string & getType () const
 Get element type std::string. More...
 
- Public Member Functions inherited from AttributeSet
 AttributeSet ()
 Default constructor. More...
 
 AttributeSet (const AttributeSet &)
 
virtual ~AttributeSet ()
 
const AttributeSetoperator= (const AttributeSet &)
 
const_iterator begin () const
 Iterator accessing first member. More...
 
const_iterator end () const
 Iterator marking the end of the list. More...
 
double getAttribute (const std::string &aKey) const
 Get attribute value. More...
 
bool hasAttribute (const std::string &aKey) const
 Test for presence of an attribute. More...
 
void removeAttribute (const std::string &aKey)
 Remove an existing attribute. More...
 
void setAttribute (const std::string &aKey, double val)
 Set value of an attribute. More...
 
ChannelgetChannel (const std::string &aKey, bool create=false)
 Construct a read/write channel. More...
 
const ConstChannelgetConstChannel (const std::string &aKey) const
 Construct a read-only channel. More...
 

Private Attributes

std::string elementName
 
std::string elementType
 

Additional Inherited Members

- Public Types inherited from AttributeSet
typedef std::map< std::string,
double, std::less< std::string > > 
NameMap
 A map of name versus value. More...
 
typedef NameMap::const_iterator const_iterator
 An iterator for a map of name versus value. More...
 
- Protected Attributes inherited from AttributeSet
NameMap itsMap
 The attribute map. More...
 

Detailed Description

An image of an element.

Definition at line 35 of file ElementImage.h.

Constructor & Destructor Documentation

ElementImage::ElementImage ( const std::string &  name,
const std::string &  type,
const AttributeSet map 
)

Constructor.

Definition at line 40 of file ElementImage.cpp.

ElementImage::ElementImage ( )

Definition at line 30 of file ElementImage.cpp.

ElementImage::ElementImage ( const ElementImage right)

Definition at line 34 of file ElementImage.cpp.

ElementImage::~ElementImage ( )
virtual

Definition at line 47 of file ElementImage.cpp.

Member Function Documentation

const std::string & ElementImage::getName ( ) const

Get element name.

Definition at line 59 of file ElementImage.cpp.

References elementName.

const std::string & ElementImage::getType ( ) const

Get element type std::string.

Definition at line 69 of file ElementImage.cpp.

References elementType.

const ElementImage & ElementImage::operator= ( const ElementImage right)

Assignment operator.

Definition at line 51 of file ElementImage.cpp.

References elementName, elementType, and AttributeSet::operator=().

Here is the call graph for this function:

void ElementImage::setName ( const std::string &  name)

Set element name.

Definition at line 64 of file ElementImage.cpp.

References elementName, and name.

void ElementImage::setType ( const std::string &  type)

Set element type std::string.

Definition at line 74 of file ElementImage.cpp.

References elementType.

Member Data Documentation

std::string ElementImage::elementName
private

Definition at line 68 of file ElementImage.h.

Referenced by getName(), operator=(), and setName().

std::string ElementImage::elementType
private

Definition at line 71 of file ElementImage.h.

Referenced by getType(), operator=(), and setType().


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