GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TGRSIMap< key_type, mapped_type, key_compare, allocator_type > Class Template Reference

Detailed Description

template<typename key_type, typename mapped_type, typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
class TGRSIMap< key_type, mapped_type, key_compare, allocator_type >

Definition at line 27 of file TGRSIMap.h.

Public Types

using map_t = std::map<key_type, mapped_type, key_compare, allocator_type>
 

Public Member Functions

 TGRSIMap ()=default
 
 TGRSIMap (const TGRSIMap &)=default
 
 TGRSIMap (TGRSIMap &&) noexcept=default
 
 ~TGRSIMap ()=default
 
mapped_type & at (const key_type &key)
 
const mapped_type & at (const key_type &key) const
 
map_t::iterator begin ()
 
map_t::const_iterator begin () const
 
void clear () noexcept
 
map_t::size_type count (const key_type *key) const
 
template<class... Args>
std::pair< typename map_t::iterator, bool > emplace (Args &&... args)
 
bool empty () const noexcept
 
map_t::iterator end ()
 
map_t::const_iterator end () const
 
void erase (typename map_t::iterator first, typename map_t::iterator last)
 
void erase (typename map_t::iterator pos)
 
map_t::iterator find (const key_type &key)
 
map_t::const_iterator find (const key_type &key) const
 
size_t max_size () const noexcept
 
TGRSIMapoperator= (const TGRSIMap &)=default
 
TGRSIMapoperator= (TGRSIMap &&) noexcept=default
 
mapped_type & operator[] (const key_type &key)
 
const mapped_type & operator[] (const key_type &key) const
 
void Print ()
 
size_t size () const noexcept
 
void swap (map_t &other)
 

Private Attributes

std::map< key_type, mapped_type, key_compare, allocator_type > fMap
 
+ Collaboration diagram for TGRSIMap< key_type, mapped_type, key_compare, allocator_type >:

Member Typedef Documentation

◆ map_t

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
using TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::map_t = std::map<key_type, mapped_type, key_compare, allocator_type>

Definition at line 63 of file TGRSIMap.h.

Constructor & Destructor Documentation

◆ TGRSIMap() [1/3]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::TGRSIMap ( )
default

◆ TGRSIMap() [2/3]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::TGRSIMap ( const TGRSIMap< key_type, mapped_type, key_compare, allocator_type > & )
default

◆ TGRSIMap() [3/3]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::TGRSIMap ( TGRSIMap< key_type, mapped_type, key_compare, allocator_type > && )
defaultnoexcept

◆ ~TGRSIMap()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::~TGRSIMap ( )
default

Member Function Documentation

◆ at() [1/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
mapped_type & TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::at ( const key_type & key)
inline

◆ at() [2/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
const mapped_type & TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::at ( const key_type & key) const
inline

◆ begin() [1/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
map_t::iterator TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::begin ( )
inline

◆ begin() [2/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
map_t::const_iterator TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::begin ( ) const
inline

◆ clear()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
void TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::clear ( )
inlinenoexcept

◆ count()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
map_t::size_type TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::count ( const key_type * key) const
inline

◆ emplace()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
template<class... Args>
std::pair< typename map_t::iterator, bool > TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::emplace ( Args &&... args)
inline

◆ empty()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
bool TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::empty ( ) const
inlinenoexcept

◆ end() [1/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
map_t::iterator TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::end ( )
inline

◆ end() [2/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
map_t::const_iterator TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::end ( ) const
inline

◆ erase() [1/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
void TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::erase ( typename map_t::iterator first,
typename map_t::iterator last )
inline

◆ erase() [2/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
void TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::erase ( typename map_t::iterator pos)
inline

◆ find() [1/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
map_t::iterator TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::find ( const key_type & key)
inline

◆ find() [2/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
map_t::const_iterator TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::find ( const key_type & key) const
inline

◆ max_size()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
size_t TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::max_size ( ) const
inlinenoexcept

◆ operator=() [1/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
TGRSIMap & TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::operator= ( const TGRSIMap< key_type, mapped_type, key_compare, allocator_type > & )
default

◆ operator=() [2/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
TGRSIMap & TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::operator= ( TGRSIMap< key_type, mapped_type, key_compare, allocator_type > && )
defaultnoexcept

◆ operator[]() [1/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
mapped_type & TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::operator[] ( const key_type & key)
inline

◆ operator[]() [2/2]

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
const mapped_type & TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::operator[] ( const key_type & key) const
inline

◆ Print()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
void TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::Print ( )
inline

◆ size()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
size_t TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::size ( ) const
inlinenoexcept

◆ swap()

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
void TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::swap ( map_t & other)
inline

Member Data Documentation

◆ fMap

template<typename key_type , typename mapped_type , typename key_compare = std::less<key_type>, typename allocator_type = std::allocator<std::pair<const key_type, mapped_type>>>
std::map<key_type, mapped_type, key_compare, allocator_type> TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::fMap
private

Definition at line 97 of file TGRSIMap.h.

Referenced by TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::at(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::at(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::begin(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::begin(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::clear(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::count(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::emplace(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::empty(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::end(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::end(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::erase(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::erase(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::find(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::find(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::max_size(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::operator[](), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::operator[](), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::Print(), TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::size(), and TGRSIMap< key_type, mapped_type, key_compare, allocator_type >::swap().