C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
MultiMap< KeyType, ValType > Class Template Reference

Associative set with duplicates (multiset). More...

#include <templ_multimap.h>

+ Inheritance diagram for MultiMap< KeyType, ValType >:

Public Member Functions

Iterator operator[] (const KeyType &key) const
 Access by key operator.
 
Iterator First () const
 Get an iterator pointing to the first element.
 
void Associate (const KeyType &key, const ValType &val)
 Add an element with specified key and value.
 
void Dissociate (const KeyType &key, const ValType &val)
 Remove an element with specified key and value.
 
void Dissociate (Iterator &it1, Iterator &it2)
 Remove elements in the range [it1, it2).
 
Iterator Dissociate (Iterator &it)
 Remove an element specified by an iterator.
 
void Flush ()
 Removes all elements from the container.
 
bool IsAssociated (const KeyType &key, const ValType &val) const
 Is there an element with the specified key and value.
 
Iterator Find (const KeyType &key) const
 Find an element with the specified key and value.
 

Detailed Description

template<class KeyType, class ValType>
class MultiMap< KeyType, ValType >

Associative set with duplicates (multiset).

Associative set with duplicates (multiset).
Implements the core functions of is std::multimap. Requirements to data types KeyType and ValType are the same as in SArray<T>. Multiset sets the mapping (associations) between a key-object and a subset of value-objects. For some object of the "KeyType" type there is set a mapping to a subset of objects of the "ValType" type.


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