Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utils::CountingMap< Key > Class Template Reference

Structure used to count elements. More...

#include <counting-map.hpp>

Public Member Functions

size_t increment (const Key &key)
 
size_t decrement (const Key &key)
 
void clear ()
 
size_t get (const Key &key) const
 
bool empty () const
 

Private Types

typedef std::unordered_map
< Key, size_t > 
Map
 

Private Attributes

Map mMap
 

Detailed Description

template<class Key>
class utils::CountingMap< Key >

Structure used to count elements.

It's like multiset + count but is more efficient.

Member Typedef Documentation

template<class Key>
typedef std::unordered_map<Key, size_t> utils::CountingMap< Key >::Map
private

Member Function Documentation

template<class Key>
void utils::CountingMap< Key >::clear ( )
inline
template<class Key>
size_t utils::CountingMap< Key >::decrement ( const Key &  key)
inline
template<class Key>
bool utils::CountingMap< Key >::empty ( ) const
inline
template<class Key>
size_t utils::CountingMap< Key >::get ( const Key &  key) const
inline
template<class Key>
size_t utils::CountingMap< Key >::increment ( const Key &  key)
inline

Member Data Documentation

template<class Key>
Map utils::CountingMap< Key >::mMap
private

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