DDD  1.9.0.20240826145154
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
AdditiveMap< K, V, EqualKey > Class Template Reference

#include <AdditiveMap.hpp>

Collaboration diagram for AdditiveMap< K, V, EqualKey >:
Collaboration graph

Public Types

typedef mapType::value_type value_type
 
typedef mapType::const_iterator const_iterator
 
typedef mapType::iterator iterator
 

Public Member Functions

 AdditiveMap ()
 
const_iterator end () const
 
const_iterator begin () const
 
iterator find (const K &key)
 
int addAll (const AdditiveMap< K, V > &other)
 
int addAll (const_iterator begin, const_iterator end)
 
bool add (const K &key, const V &value)
 
bool remove (const K &key, const V &value)
 

Private Types

typedef std::vector< std::pair< K, V > > mapType
 

Private Attributes

mapType map
 

Member Typedef Documentation

◆ const_iterator

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
typedef mapType::const_iterator AdditiveMap< K, V, EqualKey >::const_iterator

◆ iterator

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
typedef mapType::iterator AdditiveMap< K, V, EqualKey >::iterator

◆ mapType

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
typedef std::vector<std::pair<K,V> > AdditiveMap< K, V, EqualKey >::mapType
private

◆ value_type

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
typedef mapType::value_type AdditiveMap< K, V, EqualKey >::value_type

Constructor & Destructor Documentation

◆ AdditiveMap()

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
AdditiveMap< K, V, EqualKey >::AdditiveMap ( )
inline

Member Function Documentation

◆ add()

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
bool AdditiveMap< K, V, EqualKey >::add ( const K &  key,
const V &  value 
)
inline

◆ addAll() [1/2]

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
int AdditiveMap< K, V, EqualKey >::addAll ( const AdditiveMap< K, V > &  other)
inline

◆ addAll() [2/2]

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
int AdditiveMap< K, V, EqualKey >::addAll ( const_iterator  begin,
const_iterator  end 
)
inline

◆ begin()

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
const_iterator AdditiveMap< K, V, EqualKey >::begin ( ) const
inline

◆ end()

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
const_iterator AdditiveMap< K, V, EqualKey >::end ( ) const
inline

◆ find()

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
iterator AdditiveMap< K, V, EqualKey >::find ( const K &  key)
inline

◆ remove()

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
bool AdditiveMap< K, V, EqualKey >::remove ( const K &  key,
const V &  value 
)
inline

Member Data Documentation

◆ map

template<typename K , typename V , typename EqualKey = d3::util::equal<K>>
mapType AdditiveMap< K, V, EqualKey >::map
private

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

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Aug 26 2024 14:54:00 for DDD by doxygen 1.9.1