41 std::pair<MapType::iterator, bool> index =
inventory.insert(value);
60 MapType::const_iterator index =
inventory.find(name);
65 return (*index).second;
71 const std::string &
name,
95 std::pair<MapType::iterator, bool> index =
inventory.insert(value);
102 (*index.first).second = newElement;
virtual ElementBase * find(const std::string &name) const
Find element by name.
ElementFactory()
Default constructor.
Interface for basic beam line object.
Map of std::string versus double value.
virtual ElementBase * makeElement(const std::string &type, const std::string &name, const AttributeSet &set)
Make new element.
virtual void setName(const std::string &name)
Set element name.
virtual const std::string & getName() const
Get element name.
virtual bool define(ElementBase *newElement)
Define a new element.
virtual bool storeElement(ElementBase *newElement)
Define a new element.
virtual ElementBase * clone() const =0
Return clone.
T * value_type(const SliceIterator< T > &)
virtual ~ElementFactory()
virtual void erase(const std::string &name)
Erase element by name.
bool update(const AttributeSet &)
Update element.