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
famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::PointerMap | ( | ) | [inline] |
Constructor.
Member Function Documentation
iterator famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::begin | ( | ) | [inline] |
Returns iterator pointing to the first item.
Referenced by famouso::mw::afp::defrag::EventSeqDemux< DCP >::~EventSeqDemux(), and famouso::mw::afp::defrag::MultiSourceDemux< DCP >::~MultiSourceDemux().
iterator famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::end | ( | ) | [inline] |
Returns iterator pointing behind the last item.
Referenced by famouso::mw::afp::defrag::detail::PointerMap< KeyType, Event< KeyType >,(DCP::concurrent_events==(unsigned int) dynamic||DCP::old_event_ids==(unsigned int) dynamic?dynamic:DCP::concurrent_events+DCP::old_event_ids) >::erase(), famouso::mw::afp::defrag::detail::PointerMap< KeyType, Event< KeyType >,(DCP::concurrent_events==(unsigned int) dynamic||DCP::old_event_ids==(unsigned int) dynamic?dynamic:DCP::concurrent_events+DCP::old_event_ids) >::find(), famouso::mw::afp::defrag::MultiSourceDemux< DCP >::get_defragmenter_handle(), famouso::mw::afp::defrag::EventSeqDemux< DCP >::get_defragmenter_handle(), famouso::mw::afp::defrag::EventSeqDemux< DCP >::~EventSeqDemux(), and famouso::mw::afp::defrag::MultiSourceDemux< DCP >::~MultiSourceDemux().
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
void famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::erase | ( | iterator | it | ) | [inline] |
Erase an item.
- Parameters:
-
it Iterator pointing to the item to remove
Referenced by famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, dynamic >::erase(), and famouso::mw::afp::defrag::MultiSourceDemux< DCP >::free_defragmenter().
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().
bool famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, N >::insert | ( | ItemT * | item | ) | [inline] |
Insert an item.
- Parameters:
-
item Pointer to insert
- Returns:
- Returns whether item was inserted successfully
Referenced by famouso::mw::afp::defrag::MultiSourceDemux< DCP >::get_defragmenter_handle(), famouso::mw::afp::defrag::EventSeqDemux< DCP >::get_defragmenter_handle(), and famouso::mw::afp::defrag::detail::PointerMap< KeyT, ItemT, dynamic >::insert().
The documentation for this class was generated from the following file:
- include/mw/afp/defrag/detail/PointerMap.h