| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

Public Member Functions | Protected Member Functions

# Gaudi::Utils::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 Gaudi::Utils::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

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

virtual destructor

Definition at line 23 of file MapBase.cpp.

    {}

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

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

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

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

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