OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
Concrete factory class for CLASSIC elements. More...
#include <ElementFactory.h>
Public Member Functions | |
ElementFactory () | |
Default constructor. More... | |
virtual | ~ElementFactory () |
virtual bool | define (ElementBase *newElement) |
Define a new element. More... | |
virtual void | erase (const std::string &name) |
Erase element by name. More... | |
virtual ElementBase * | find (const std::string &name) const |
Find element by name. More... | |
virtual ElementBase * | makeElement (const std::string &type, const std::string &name, const AttributeSet &set) |
Make new element. More... | |
virtual bool | storeElement (ElementBase *newElement) |
Define a new element. More... | |
![]() | |
Factory () | |
virtual | ~Factory () |
Private Types | |
typedef std::map< std::string, ElementBase *, std::less < std::string > > | MapType |
Private Member Functions | |
ElementFactory (const ElementFactory &) | |
void | operator= (const ElementFactory &) |
Private Attributes | |
MapType | inventory |
Concrete factory class for CLASSIC elements.
Definition at line 39 of file ElementFactory.h.
|
private |
Definition at line 85 of file ElementFactory.h.
ElementFactory::ElementFactory | ( | ) |
Default constructor.
Definition at line 29 of file ElementFactory.cpp.
|
virtual |
Definition at line 34 of file ElementFactory.cpp.
|
private |
|
virtual |
Define a new element.
Implements Factory.
Definition at line 38 of file ElementFactory.cpp.
References ElementBase::getName(), inventory, name, and value_type().
|
virtual |
Erase element by name.
Implements Factory.
Definition at line 54 of file ElementFactory.cpp.
References inventory.
|
virtual |
Find element by name.
Implements Factory.
Definition at line 59 of file ElementFactory.cpp.
References inventory.
Referenced by makeElement().
|
virtual |
Make new element.
Implements Factory.
Definition at line 70 of file ElementFactory.cpp.
References ElementBase::clone(), find(), ElementBase::setName(), storeElement(), and ElementBase::update().
|
private |
|
virtual |
Define a new element.
Implements Factory.
Definition at line 92 of file ElementFactory.cpp.
References ElementBase::getName(), inventory, name, and value_type().
Referenced by makeElement().
|
private |
Definition at line 86 of file ElementFactory.h.
Referenced by define(), erase(), find(), and storeElement().