All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MapBase.cpp
Go to the documentation of this file.
1 // $Id: $
2 // ============================================================================
3 // Include files
4 // ============================================================================
5 // STD & STD
6 // ============================================================================
7 #include <stdexcept>
8 // ============================================================================
9 // GaudiKernel
10 // ============================================================================
11 #include "GaudiKernel/System.h"
12 #include "GaudiKernel/MapBase.h"
13 // ============================================================================
20 // ============================================================================
21 // destructor
22 // ============================================================================
24 // ============================================================================
25 /* throw std::out_of_range exception
26  * @see std::out_of_range
27  */
28 // ============================================================================
30 {
31  std::string _nam = System::typeinfoName ( typeid ( *this ) ) ;
32  throw std::out_of_range ( _nam.c_str () ) ;
33 }
34 // ============================================================================
35 
36 // ============================================================================
37 // The END
38 // ============================================================================
39 
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Definition: System.cpp:298
void throw_out_of_range_exception() const
throw std::out_of_range exception
Definition: MapBase.cpp:29
virtual ~MapBase()
virtual destructor
Definition: MapBase.cpp:23