CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
enroller_helper::EnrollerHelper< T, TVector > Struct Template Reference

#include <SimActivityRegistryEnroller.h>

Public Types

typedef boost::mpl::pop_back< TVector >::type RemainingVector
 

Static Public Member Functions

static void enroll (SimActivityRegistry &iReg, T *iT)
 

Detailed Description

template<class T, class TVector>
struct enroller_helper::EnrollerHelper< T, TVector >

Definition at line 50 of file SimActivityRegistryEnroller.h.

Member Typedef Documentation

◆ RemainingVector

template<class T , class TVector >
typedef boost::mpl::pop_back<TVector>::type enroller_helper::EnrollerHelper< T, TVector >::RemainingVector

Definition at line 51 of file SimActivityRegistryEnroller.h.

Member Function Documentation

◆ enroll()

template<class T , class TVector >
static void enroller_helper::EnrollerHelper< T, TVector >::enroll ( SimActivityRegistry iReg,
T iT 
)
inlinestatic

Definition at line 52 of file SimActivityRegistryEnroller.h.

52  {
53  //Try to enroll the object if it inherits from the class at the
54  // end of TVector
55  Enrollment<typename boost::mpl::deref<
57 
58  //If TVector is not at its end, call EnrollerHelper with a vector
59  // that had our last type 'popped off' the end
60  typedef typename boost::mpl::eval_if<
61  boost::mpl::empty<TVector>,
62  boost::mpl::identity<LastEnrollerHelper<T> >,
64  NextEnroller::enroll(iReg, iT);
65  }

Referenced by SimActivityRegistryEnroller::enroll().

enroller_helper::EnrollerHelper::enroll
static void enroll(SimActivityRegistry &iReg, T *iT)
Definition: SimActivityRegistryEnroller.h:52
type
type
Definition: HCALResponse.h:21