Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
 JEvtCategoryMap (const JEvtCategoryHelper &category, const T &value)
 Constructor.
 
template<class ... Args>
 JEvtCategoryMap (const JEvtCategoryHelper &category, const T &value, const Args &...args)
 Constructor.
 
void insert (const JEvtCategoryHelper &category, const T &value)
 Insert pair of event category and value.
 
template<class ... Args>
void insert (const JEvtCategoryHelper &category, const T &value, const Args &...args)
 Insert pairs of event categories and values.
 

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 54 of file JEvtCategoryMap.hh.

Member Typedef Documentation

◆ JEvtCategoryMap_t

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

Definition at line 59 of file JEvtCategoryMap.hh.

◆ map_type

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

Definition at line 61 of file JEvtCategoryMap.hh.

◆ iterator

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

Definition at line 63 of file JEvtCategoryMap.hh.

◆ const_iterator

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

Definition at line 64 of file JEvtCategoryMap.hh.

Constructor & Destructor Documentation

◆ JEvtCategoryMap() [1/3]

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

Default constructor.

Definition at line 70 of file JEvtCategoryMap.hh.

70 :
71 map_type()
72 {}
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 81 of file JEvtCategoryMap.hh.

82 :
83 map_type()
84 {
85 insert(category, value);
86 }
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 98 of file JEvtCategoryMap.hh.

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

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 113 of file JEvtCategoryMap.hh.

115 {
116 map_type::insert(std::make_pair(category, value));
117 }

◆ 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 128 of file JEvtCategoryMap.hh.

131 {
132 insert(category, value);
133 insert(args...);
134 }

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