|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
An image of an element. More...
#include <ElementImage.h>


Public Member Functions | |
| ElementImage (const std::string &name, const std::string &type, const AttributeSet &map) | |
| Constructor. More... | |
| ElementImage () | |
| ElementImage (const ElementImage &) | |
| virtual | ~ElementImage () |
| const ElementImage & | operator= (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 AttributeSet & | operator= (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... | |
| Channel * | getChannel (const std::string &aKey, bool create=false) |
| Construct a read/write channel. More... | |
| const ConstChannel * | getConstChannel (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... | |
An image of an element.
Definition at line 35 of file ElementImage.h.
| 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.
|
virtual |
Definition at line 47 of file ElementImage.cpp.
| const std::string & ElementImage::getName | ( | ) | const |
| 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=().

| void ElementImage::setName | ( | const std::string & | name | ) |
| void ElementImage::setType | ( | const std::string & | type | ) |
Set element type std::string.
Definition at line 74 of file ElementImage.cpp.
References elementType.
|
private |
Definition at line 68 of file ElementImage.h.
Referenced by getName(), operator=(), and setName().
|
private |
Definition at line 71 of file ElementImage.h.
Referenced by getType(), operator=(), and setType().
1.8.5