Gaudi::Utils::MapBase Class Reference

Helper base-class to allow the generic Python-decoration for all "map-like" classes in Gaudi. More...

#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/825/GAUDI/GAUDI_v26r3/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiKernel/MapBase.h>

Inherited by GaudiUtils::Map< K, T, M >, GaudiUtils::Map< K, T, M >, GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >, GaudiUtils::VectorMap< KEY, VALUE, KEYCOMPARE, ALLOCATOR >, GaudiUtils::Map< const void *, EntryType, __gnu_cxx::hash_map< const void *, EntryType, Hash< const void * > > >, GaudiUtils::Map< const void *, EntryType, __gnu_cxx::hash_map< const void *, EntryType, Hash< const void * > > >, GaudiUtils::Map< Gaudi::StringKey, Leaf, __gnu_cxx::hash_map< Gaudi::StringKey, Leaf, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, Leaf, __gnu_cxx::hash_map< Gaudi::StringKey, Leaf, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, ListenerList *, __gnu_cxx::hash_map< Gaudi::StringKey, ListenerList *, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, ListenerList *, __gnu_cxx::hash_map< Gaudi::StringKey, ListenerList *, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, Node, __gnu_cxx::hash_map< Gaudi::StringKey, Node, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, Node, __gnu_cxx::hash_map< Gaudi::StringKey, Node, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< InterfaceID, SmartIF< IInterface > >, GaudiUtils::Map< InterfaceID, SmartIF< IInterface > >, GaudiUtils::Map< long, void *, __gnu_cxx::hash_map< long, void *, Hash< long > > >, GaudiUtils::Map< long, void *, __gnu_cxx::hash_map< long, void *, Hash< long > > >, GaudiUtils::Map< std::string, Address *, __gnu_cxx::hash_map< std::string, Address *, Hash< std::string > > >, GaudiUtils::Map< std::string, Address *, __gnu_cxx::hash_map< std::string, Address *, Hash< std::string > > >, GaudiUtils::Map< std::string, Bool *, __gnu_cxx::hash_map< std::string, Bool *, Hash< std::string > > >, GaudiUtils::Map< std::string, Bool *, __gnu_cxx::hash_map< std::string, Bool *, Hash< std::string > > >, GaudiUtils::Map< std::string, Char *, __gnu_cxx::hash_map< std::string, Char *, Hash< std::string > > >, GaudiUtils::Map< std::string, Char *, __gnu_cxx::hash_map< std::string, Char *, Hash< std::string > > >, GaudiUtils::Map< std::string, Double *, __gnu_cxx::hash_map< std::string, Double *, Hash< std::string > > >, GaudiUtils::Map< std::string, Double *, __gnu_cxx::hash_map< std::string, Double *, Hash< std::string > > >, GaudiUtils::Map< std::string, FArray *, __gnu_cxx::hash_map< std::string, FArray *, Hash< std::string > > >, GaudiUtils::Map< std::string, FArray *, __gnu_cxx::hash_map< std::string, FArray *, Hash< std::string > > >, GaudiUtils::Map< std::string, Float *, __gnu_cxx::hash_map< std::string, Float *, Hash< std::string > > >, GaudiUtils::Map< std::string, Float *, __gnu_cxx::hash_map< std::string, Float *, Hash< std::string > > >, GaudiUtils::Map< std::string, FMatrix *, __gnu_cxx::hash_map< std::string, FMatrix *, Hash< std::string > > >, GaudiUtils::Map< std::string, FMatrix *, __gnu_cxx::hash_map< std::string, FMatrix *, Hash< std::string > > >, GaudiUtils::Map< std::string, Gaudi::Utils::TypeNameString, __gnu_cxx::hash_map< std::string, Gaudi::Utils::TypeNameString, Hash< std::string > > >, GaudiUtils::Map< std::string, Gaudi::Utils::TypeNameString, __gnu_cxx::hash_map< std::string, Gaudi::Utils::TypeNameString, Hash< std::string > > >, GaudiUtils::Map< std::string, IFileAccess *, __gnu_cxx::hash_map< std::string, IFileAccess *, Hash< std::string > > >, GaudiUtils::Map< std::string, IFileAccess *, __gnu_cxx::hash_map< std::string, IFileAccess *, Hash< std::string > > >, GaudiUtils::Map< std::string, Int *, __gnu_cxx::hash_map< std::string, Int *, Hash< std::string > > >, GaudiUtils::Map< std::string, Int *, __gnu_cxx::hash_map< std::string, Int *, Hash< std::string > > >, GaudiUtils::Map< std::string, int, __gnu_cxx::hash_map< std::string, int, Hash< std::string > > >, GaudiUtils::Map< std::string, int, __gnu_cxx::hash_map< std::string, int, Hash< std::string > > >, GaudiUtils::Map< std::string, LongLong *, __gnu_cxx::hash_map< std::string, LongLong *, Hash< std::string > > >, GaudiUtils::Map< std::string, LongLong *, __gnu_cxx::hash_map< std::string, LongLong *, Hash< std::string > > >, GaudiUtils::Map< std::string, NameMap, __gnu_cxx::hash_map< std::string, NameMap, Hash< std::string > > >, GaudiUtils::Map< std::string, NameMap, __gnu_cxx::hash_map< std::string, NameMap, Hash< std::string > > >, GaudiUtils::Map< std::string, NTuple::Item< VALUE > *, __gnu_cxx::hash_map< std::string, NTuple::Item< VALUE > *, Hash< std::string > > >, GaudiUtils::Map< std::string, NTuple::Item< VALUE > *, __gnu_cxx::hash_map< std::string, NTuple::Item< VALUE > *, Hash< std::string > > >, GaudiUtils::Map< std::string, Short *, __gnu_cxx::hash_map< std::string, Short *, Hash< std::string > > >, GaudiUtils::Map< std::string, Short *, __gnu_cxx::hash_map< std::string, Short *, Hash< std::string > > >, GaudiUtils::Map< std::string, SmartIF< IAlgorithm >, __gnu_cxx::hash_map< std::string, SmartIF< IAlgorithm >, Hash< std::string > > >, GaudiUtils::Map< std::string, SmartIF< IAlgorithm >, __gnu_cxx::hash_map< std::string, SmartIF< IAlgorithm >, Hash< std::string > > >, GaudiUtils::Map< std::string, SmartIF< IService >, __gnu_cxx::hash_map< std::string, SmartIF< IService >, Hash< std::string > > >, GaudiUtils::Map< std::string, SmartIF< IService >, __gnu_cxx::hash_map< std::string, SmartIF< IService >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::string >, GaudiUtils::Map< std::string, std::string >, GaudiUtils::Map< std::string, std::string, __gnu_cxx::hash_map< std::string, std::string, Hash< std::string > > >, GaudiUtils::Map< std::string, std::string, __gnu_cxx::hash_map< std::string, std::string, Hash< std::string > > >, GaudiUtils::Map< std::string, UChar *, __gnu_cxx::hash_map< std::string, UChar *, Hash< std::string > > >, GaudiUtils::Map< std::string, UChar *, __gnu_cxx::hash_map< std::string, UChar *, Hash< std::string > > >, GaudiUtils::Map< std::string, UInt *, __gnu_cxx::hash_map< std::string, UInt *, Hash< std::string > > >, GaudiUtils::Map< std::string, UInt *, __gnu_cxx::hash_map< std::string, UInt *, Hash< std::string > > >, GaudiUtils::Map< std::string, ULongLong *, __gnu_cxx::hash_map< std::string, ULongLong *, Hash< std::string > > >, GaudiUtils::Map< std::string, ULongLong *, __gnu_cxx::hash_map< std::string, ULongLong *, Hash< std::string > > >, GaudiUtils::Map< std::string, UShort *, __gnu_cxx::hash_map< std::string, UShort *, Hash< std::string > > >, GaudiUtils::Map< std::string, UShort *, __gnu_cxx::hash_map< std::string, UShort *, Hash< std::string > > >, GaudiUtils::VectorMap< const INamedInterface *, int >, and GaudiUtils::VectorMap< const INamedInterface *, int >.

Public Member Functions

virtual ~MapBase ()
 virtual destructor More...
 
virtual ~MapBase ()
 virtual destructor More...
 

Protected Member Functions

void throw_out_of_range_exception () const
 throw std::out_of_range exception More...
 
void throw_out_of_range_exception () const
 throw std::out_of_range exception More...
 

Detailed Description

Helper base-class to allow the generic Python-decoration for all "map-like" classes in Gaudi.

The corresponding Python class provide the useful iterators, look-up, etc. This base-class in python is decorated with the following methods

  • len
  • iter
  • iteritems
  • contains
  • repr
  • setitem
  • delitem
  • str
  • repr
  • keys
  • items
  • values
  • get
  • has_key

Thus it behaves practically identically with builtin-type dict

Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Date
2010-02-20

Definition at line 46 of file MapBase.h.

Constructor & Destructor Documentation

Gaudi::Utils::MapBase::~MapBase ( )
virtual

virtual destructor

Definition at line 23 of file MapBase.cpp.

23 {}
virtual Gaudi::Utils::MapBase::~MapBase ( )
virtual

virtual destructor

Member Function Documentation

void Gaudi::Utils::MapBase::throw_out_of_range_exception ( ) const
protected

throw std::out_of_range exception

See also
std::out_of_range

Definition at line 29 of file MapBase.cpp.

30 {
31  std::string _nam = System::typeinfoName ( typeid ( *this ) ) ;
32  throw std::out_of_range ( _nam.c_str () ) ;
33 }
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:299
void Gaudi::Utils::MapBase::throw_out_of_range_exception ( ) const
protected

throw std::out_of_range exception

See also
std::out_of_range

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