Simple class, which represents the local storage of N-tuple items of the given type.
More...
#include <GaudiAlg/TuplePut.h>
template<class VALUE>
class Tuples::ItemStore< VALUE >
Simple class, which represents the local storage of N-tuple items of the given type.
Essentially it is a restricted GaudiUtils::HashMap with the ownership of the newly created entries
- Author
- Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
- Date
- 2007-04-08
Definition at line 38 of file TuplePut.h.
constructor : create empty map
Definition at line 45 of file TuplePut.h.
Store m_map
the underlying map
destructor : delete all known entries
Definition at line 47 of file TuplePut.h.
51 {
if ( 0 != ientry->second ) {
delete ientry->second ; } }
Store m_map
the underlying map
map_type::iterator iterator
the only one method:
Definition at line 56 of file TuplePut.h.
61 if (
m_map.
end() != ifound ) {
return ifound->second ; }
63 if ( 0 == tuple ) {
return 0 ; }
67 tuple -> Error (
"ItemStore::getItem('" + key
68 +
"') item name is not unique").ignore() ;
75 tuple -> Error (
"ItemStore::getItem('" + key
76 +
"') invalid NTuple::Tuple*" ).ignore() ;
85 tuple -> Error (
"ItemStore::getItem('" + key
86 +
"') cannot addItem" , sc ).ignore() ;
92 tuple -> Warning (
"ItemStore::getItem('" + key
93 +
"') the item not unique " ).ignore() ;
96 if ( !
m_map.
insert ( std::make_pair ( key , item ) ).second )
98 tuple -> Warning (
"ItemStore::getItem('" + key
99 +
"') item is not inserted!" ).ignore() ;
bool goodItem(const std::string &name) const
check the uniqueness of the name
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
NTuple::Tuple * tuple() const
provide the access to underlying Gaudi N-tuple
std::pair< iterator, bool > insert(const value_type &val)
This class is used for returning status codes from appropriate routines.
Store m_map
the underlying map
iterator find(const key_type &key)
Abstract base class which allows the user to interact with the actual N tuple implementation.
bool addItem(const std::string &name, const std::string &type)
add the item name into the list of known items
map_type::iterator iterator
StatusCode addItem(const std::string &name, Item< TYPE > &itm)
Add a scalar data item a N tuple.
Class acting as a smart pointer holding a N tuple _Item.
the underlying map
the underlying map
Definition at line 111 of file TuplePut.h.
The documentation for this class was generated from the following file: