Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Public Types | Public Member Functions | List of all members
JAANET::JEvtCategoryMap< T > Class Template Reference

Auxiliary class for reading a map of event categories. More...

#include <JEvtCategoryMap.hh>

Inheritance diagram for JAANET::JEvtCategoryMap< T >:
std::map< JEvtCategoryHelper, T >

Public Types

typedef JEvtCategoryMap< T > JEvtCategoryMap_t
 
typedef std::map< JEvtCategoryHelper, T > map_type
 
typedef map_type::iterator iterator
 
typedef map_type::const_iterator const_iterator
 

Public Member Functions

 JEvtCategoryMap ()
 Default constructor. More...
 
 JEvtCategoryMap (const JEvtCategoryHelper &category, const T &value)
 Constructor. More...
 
template<class ... Args>
 JEvtCategoryMap (const JEvtCategoryHelper &category, const T &value, const Args &...args)
 Constructor. More...
 
void insert (const JEvtCategoryHelper &category, const T &value)
 Insert pair of event category and value. More...
 
template<class ... Args>
void insert (const JEvtCategoryHelper &category, const T &value, const Args &...args)
 Insert pairs of event categories and values. More...
 

Detailed Description

template<class T>
class JAANET::JEvtCategoryMap< T >

Auxiliary class for reading a map of event categories.

The template argument corresponds to the mapped value type.

Definition at line 52 of file JEvtCategoryMap.hh.

Member Typedef Documentation

◆ JEvtCategoryMap_t

template<class T >
typedef JEvtCategoryMap<T> JAANET::JEvtCategoryMap< T >::JEvtCategoryMap_t

Definition at line 57 of file JEvtCategoryMap.hh.

◆ map_type

template<class T >
typedef std::map<JEvtCategoryHelper, T> JAANET::JEvtCategoryMap< T >::map_type

Definition at line 59 of file JEvtCategoryMap.hh.

◆ iterator

template<class T >
typedef map_type::iterator JAANET::JEvtCategoryMap< T >::iterator

Definition at line 61 of file JEvtCategoryMap.hh.

◆ const_iterator

template<class T >
typedef map_type::const_iterator JAANET::JEvtCategoryMap< T >::const_iterator

Definition at line 62 of file JEvtCategoryMap.hh.

Constructor & Destructor Documentation

◆ JEvtCategoryMap() [1/3]

template<class T >
JAANET::JEvtCategoryMap< T >::JEvtCategoryMap ( )
inline

Default constructor.

Definition at line 68 of file JEvtCategoryMap.hh.

68  :
69  map_type()
70  {}
std::map< JEvtCategoryHelper, T > map_type

◆ JEvtCategoryMap() [2/3]

template<class T >
JAANET::JEvtCategoryMap< T >::JEvtCategoryMap ( const JEvtCategoryHelper category,
const T &  value 
)
inline

Constructor.

Parameters
categoryevent category
valuevalue

Definition at line 79 of file JEvtCategoryMap.hh.

80  :
81  map_type()
82  {
83  insert(category, value);
84  }
void insert(const JEvtCategoryHelper &category, const T &value)
Insert pair of event category and value.

◆ JEvtCategoryMap() [3/3]

template<class T >
template<class ... Args>
JAANET::JEvtCategoryMap< T >::JEvtCategoryMap ( const JEvtCategoryHelper category,
const T &  value,
const Args &...  args 
)
inline

Constructor.

Parameters
categoryevent category
valuevalue
argsremaining pairs of event categories and values

Definition at line 96 of file JEvtCategoryMap.hh.

98  :
99  map_type()
100  {
101  insert(category, value, args...);
102  }

Member Function Documentation

◆ insert() [1/2]

template<class T >
void JAANET::JEvtCategoryMap< T >::insert ( const JEvtCategoryHelper category,
const T &  value 
)
inline

Insert pair of event category and value.

Parameters
categoryevent category
valuevalue

Definition at line 111 of file JEvtCategoryMap.hh.

113  {
114  map_type::insert(std::make_pair(category, value));
115  }

◆ insert() [2/2]

template<class T >
template<class ... Args>
void JAANET::JEvtCategoryMap< T >::insert ( const JEvtCategoryHelper category,
const T &  value,
const Args &...  args 
)
inline

Insert pairs of event categories and values.

Parameters
categoryevent category
valuevalue
argsremaining pairs of event categories and values

Definition at line 126 of file JEvtCategoryMap.hh.

129  {
130  insert(category, value);
131  insert(args...);
132  }

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