ATLAS Offline Software
Static Protected Member Functions | List of all members
Trk::EventDataBase< T_Derived, T_Base > Class Template Reference

Base for a helper class to pass mutable storage to tools. More...

#include <EventDataBase.h>

Inheritance diagram for Trk::EventDataBase< T_Derived, T_Base >:
Collaboration diagram for Trk::EventDataBase< T_Derived, T_Base >:

Static Protected Member Functions

static T_Derived & getPrivateEventData (T_Base &virt_event_data)
 
static void throwMismtach ()
 

Detailed Description

template<class T_Derived, class T_Base>
class Trk::EventDataBase< T_Derived, T_Base >

Base for a helper class to pass mutable storage to tools.

Definition at line 16 of file EventDataBase.h.

Member Function Documentation

◆ getPrivateEventData()

template<class T_Derived , class T_Base >
static T_Derived& Trk::EventDataBase< T_Derived, T_Base >::getPrivateEventData ( T_Base &  virt_event_data)
inlinestaticprotected

Definition at line 19 of file EventDataBase.h.

20  {
21  T_Derived *event_data = dynamic_cast<T_Derived *>(&virt_event_data);
22  if (!event_data) { throwMismtach(); }
23  return *event_data;
24  }

◆ throwMismtach()

template<class T_Derived , class T_Base >
static void Trk::EventDataBase< T_Derived, T_Base >::throwMismtach ( )
inlinestaticprotected

Definition at line 26 of file EventDataBase.h.

26  {
27  throw std::logic_error(std::string("EventData mismatch, expecting ")
28  +typeid(T_Derived).name() + "::EventData.");
29  }

The documentation for this class was generated from the following file:
Trk::EventDataBase::throwMismtach
static void throwMismtach()
Definition: EventDataBase.h:26
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221