Menu

famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N > Class Template Reference

Pointer container of constant size. More...

#include <PointerMap.h>

Data Structures

class  iterator
 Type definition of an iterator. More...

Public Member Functions

 PointerMap ()
 Constructor.
bool insert (ItemT *item)
 Insert an item.
void erase (iterator it)
 Erase an item.
void erase (const KeyT &key)
 Erase first item matching a key.
iterator find (const KeyT &key)
 Find first item matching a key.
iterator begin ()
 Returns iterator pointing to the first item.
iterator end ()
 Returns iterator pointing behind the last item.

Detailed Description

template<class KeyT, class ItemT, unsigned int N>
class famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >

Pointer container of constant size.

Template Parameters:
KeyT Key data type
ItemT Dereferenced item data type (the type pointed to). Must have a member function get_key() which returns KeyT.
N Max. count of items

This container is not implemented as a map and does not check uniqueness of keys.


Constructor & Destructor Documentation

template<class KeyT, class ItemT, unsigned int N>
famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::PointerMap (  )  [inline]

Constructor.


Member Function Documentation

template<class KeyT, class ItemT, unsigned int N>
iterator famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::begin (  )  [inline]
template<class KeyT, class ItemT, unsigned int N>
void famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::erase ( const KeyT &  key  )  [inline]

Erase first item matching a key.

Parameters:
key Key identifying the item to remove
template<class KeyT, class ItemT, unsigned int N>
void famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::erase ( iterator  it  )  [inline]
template<class KeyT, class ItemT, unsigned int N>
iterator famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::find ( const KeyT &  key  )  [inline]

Find first item matching a key.

Parameters:
key Key of the item to find
Returns:
Iterator pointing to the item. If there is no item with the given key, end() is returned.

Referenced by famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, dynamic >::find(), famouso::mw::afp::defrag::MultiSourceDemux< DCP >::get_defragmenter_handle(), and famouso::mw::afp::defrag::EventSeqDemux< DCP >::get_defragmenter_handle().

template<class KeyT, class ItemT, unsigned int N>
bool famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::insert ( ItemT *  item  )  [inline]

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