| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# MapBase Class Reference

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

`#include <MapBase.h>`

Inheritance diagram for MapBase:
[legend]

List of all members.

## Public Member Functions
virtual | ~MapBase ()
| virtual destructor
## Protected Member Functions
void | throw_out_of_range_exception () const
| throw std::out_of_range exception

## 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.Belyaev@itep.ru

Date:
  2010-02-20

Definition at line 46 of file MapBase.h.

## Constructor & Destructor Documentation

MapBase::~MapBase | ( |  | ) | `[virtual]`

virtual destructor

Definition at line 23 of file MapBase.cpp.

    00023 {}

## Member Function Documentation

void 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.

    00030 {
    00031   std::string _nam = System::typeinfoName ( typeid ( *this ) ) ;
    00032   throw std::out_of_range ( _nam.c_str () ) ;
    00033 }

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiKernel/GaudiKernel/MapBase.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiKernel/GaudiKernel/Map.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiKernel/GaudiKernel/VectorMap.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiKernel/src/Lib/MapBase.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines