Jpp 19.3.0-rc.2
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 55 of file JEvtCategoryMap.hh.

Member Typedef Documentation

◆ JEvtCategoryMap_t

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

Definition at line 60 of file JEvtCategoryMap.hh.

◆ map_type

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

Definition at line 62 of file JEvtCategoryMap.hh.

◆ iterator

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

Definition at line 64 of file JEvtCategoryMap.hh.

◆ const_iterator

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

Definition at line 65 of file JEvtCategoryMap.hh.

Constructor & Destructor Documentation

◆ JEvtCategoryMap() [1/3]

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

Default constructor.

Definition at line 71 of file JEvtCategoryMap.hh.

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

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

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

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

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

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

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

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