Jpp in_tag_pdf_generation
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 56 of file JEvtCategoryMap.hh.

Member Typedef Documentation

◆ JEvtCategoryMap_t

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

Definition at line 61 of file JEvtCategoryMap.hh.

◆ map_type

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

Definition at line 63 of file JEvtCategoryMap.hh.

◆ iterator

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

Definition at line 65 of file JEvtCategoryMap.hh.

◆ const_iterator

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

Definition at line 66 of file JEvtCategoryMap.hh.

Constructor & Destructor Documentation

◆ JEvtCategoryMap() [1/3]

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

Default constructor.

Definition at line 72 of file JEvtCategoryMap.hh.

72 :
73 map_type()
74 {}
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 83 of file JEvtCategoryMap.hh.

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

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

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

117 {
118 map_type::insert(std::make_pair(category, value));
119 }

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

133 {
134 insert(category, value);
135 insert(args...);
136 }

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