Gaudi::Utils::MapBase Class Reference

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

#include </tmp/marcocle/lhcb-release/1122/GAUDI/GAUDI_v27r0/InstallArea/x86_64-slc6-gcc49-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, std::unordered_map< const void *, EntryType, Hash< const void * > > >, GaudiUtils::Map< const void *, EntryType, std::unordered_map< const void *, EntryType, Hash< const void * > > >, GaudiUtils::Map< Gaudi::StringKey, Leaf, std::unordered_map< Gaudi::StringKey, Leaf, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, Leaf, std::unordered_map< Gaudi::StringKey, Leaf, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, Node, std::unordered_map< Gaudi::StringKey, Node, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, Node, std::unordered_map< Gaudi::StringKey, Node, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, std::unique_ptr< ListenerList >, std::unordered_map< Gaudi::StringKey, std::unique_ptr< ListenerList >, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< Gaudi::StringKey, std::unique_ptr< ListenerList >, std::unordered_map< Gaudi::StringKey, std::unique_ptr< ListenerList >, Hash< Gaudi::StringKey > > >, GaudiUtils::Map< InterfaceID, SmartIF< IInterface > >, GaudiUtils::Map< InterfaceID, SmartIF< IInterface > >, GaudiUtils::Map< long, void *, std::unordered_map< long, void *, Hash< long > > >, GaudiUtils::Map< long, void *, std::unordered_map< long, void *, Hash< long > > >, GaudiUtils::Map< std::string, Gaudi::Utils::TypeNameString, std::unordered_map< std::string, Gaudi::Utils::TypeNameString, Hash< std::string > > >, GaudiUtils::Map< std::string, Gaudi::Utils::TypeNameString, std::unordered_map< std::string, Gaudi::Utils::TypeNameString, Hash< std::string > > >, GaudiUtils::Map< std::string, IFileAccess *, std::unordered_map< std::string, IFileAccess *, Hash< std::string > > >, GaudiUtils::Map< std::string, IFileAccess *, std::unordered_map< std::string, IFileAccess *, Hash< std::string > > >, GaudiUtils::Map< std::string, int, std::unordered_map< std::string, int, Hash< std::string > > >, GaudiUtils::Map< std::string, int, std::unordered_map< std::string, int, Hash< std::string > > >, GaudiUtils::Map< std::string, NameMap, std::unordered_map< std::string, NameMap, Hash< std::string > > >, GaudiUtils::Map< std::string, NameMap, std::unordered_map< std::string, NameMap, Hash< std::string > > >, GaudiUtils::Map< std::string, SmartIF< IAlgorithm >, std::unordered_map< std::string, SmartIF< IAlgorithm >, Hash< std::string > > >, GaudiUtils::Map< std::string, SmartIF< IAlgorithm >, std::unordered_map< std::string, SmartIF< IAlgorithm >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::string >, GaudiUtils::Map< std::string, std::string >, GaudiUtils::Map< std::string, std::string, std::unordered_map< std::string, std::string, Hash< std::string > > >, GaudiUtils::Map< std::string, std::string, std::unordered_map< std::string, std::string, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Address >, std::unordered_map< std::string, std::unique_ptr< Address >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Address >, std::unordered_map< std::string, std::unique_ptr< Address >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Bool >, std::unordered_map< std::string, std::unique_ptr< Bool >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Bool >, std::unordered_map< std::string, std::unique_ptr< Bool >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Char >, std::unordered_map< std::string, std::unique_ptr< Char >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Char >, std::unordered_map< std::string, std::unique_ptr< Char >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Double >, std::unordered_map< std::string, std::unique_ptr< Double >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Double >, std::unordered_map< std::string, std::unique_ptr< Double >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< FArray >, std::unordered_map< std::string, std::unique_ptr< FArray >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< FArray >, std::unordered_map< std::string, std::unique_ptr< FArray >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Float >, std::unordered_map< std::string, std::unique_ptr< Float >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Float >, std::unordered_map< std::string, std::unique_ptr< Float >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< FMatrix >, std::unordered_map< std::string, std::unique_ptr< FMatrix >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< FMatrix >, std::unordered_map< std::string, std::unique_ptr< FMatrix >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Int >, std::unordered_map< std::string, std::unique_ptr< Int >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Int >, std::unordered_map< std::string, std::unique_ptr< Int >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< LongLong >, std::unordered_map< std::string, std::unique_ptr< LongLong >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< LongLong >, std::unordered_map< std::string, std::unique_ptr< LongLong >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< NTuple::Item< VALUE > >, std::unordered_map< std::string, std::unique_ptr< NTuple::Item< VALUE > >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< NTuple::Item< VALUE > >, std::unordered_map< std::string, std::unique_ptr< NTuple::Item< VALUE > >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Short >, std::unordered_map< std::string, std::unique_ptr< Short >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< Short >, std::unordered_map< std::string, std::unique_ptr< Short >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< UChar >, std::unordered_map< std::string, std::unique_ptr< UChar >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< UChar >, std::unordered_map< std::string, std::unique_ptr< UChar >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< UInt >, std::unordered_map< std::string, std::unique_ptr< UInt >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< UInt >, std::unordered_map< std::string, std::unique_ptr< UInt >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< ULongLong >, std::unordered_map< std::string, std::unique_ptr< ULongLong >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< ULongLong >, std::unordered_map< std::string, std::unique_ptr< ULongLong >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< UShort >, std::unordered_map< std::string, std::unique_ptr< UShort >, Hash< std::string > > >, GaudiUtils::Map< std::string, std::unique_ptr< UShort >, std::unordered_map< std::string, std::unique_ptr< 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 44 of file MapBase.h.

Constructor & Destructor Documentation

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

virtual destructor

Definition at line 22 of file MapBase.cpp.

22 {}
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 28 of file MapBase.cpp.

29 {
30  std::string _nam = System::typeinfoName ( typeid ( *this ) ) ;
31  throw std::out_of_range ( _nam.c_str () ) ;
32 }
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:297
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: