dlvhex
2.5.0
|
Dynamically extended vector using custom index and value types. More...
#include <include/dlvhex2/DynamicVector.h>
Public Member Functions | |
std::vector< T >::iterator | find (K index) |
Returns an iterator to an element of the DynamicVector. | |
void | erase (K index) |
Erases an element from the DynamicVector. | |
T & | operator[] (K index) |
Accesses and element of the DynamicVector. | |
Private Attributes | |
bm::bvector | stored |
Storage of all valid indexes; K must be convertible to integer. |
Dynamically extended vector using custom index and value types.
Definition at line 46 of file DynamicVector.h.
void DynamicVector< K, T >::erase | ( | K | index | ) | [inline] |
Erases an element from the DynamicVector.
index | Index of the element to erase. |
Definition at line 62 of file DynamicVector.h.
Referenced by OrderedSet< IDAddress, SimpleHashIDAddress >::erase().
std::vector<T>::iterator DynamicVector< K, T >::find | ( | K | index | ) | [inline] |
Returns an iterator to an element of the DynamicVector.
index | Index to check. |
index
if valid, and the end() iterator otherwise. Definition at line 55 of file DynamicVector.h.
Referenced by OrderedSet< IDAddress, SimpleHashIDAddress >::renumber().
T& DynamicVector< K, T >::operator[] | ( | K | index | ) | [inline] |
Accesses and element of the DynamicVector.
index | Index of the element to access. |
Definition at line 69 of file DynamicVector.h.
Referenced by DynamicVector< T, long >::operator[]().
bm::bvector DynamicVector< K, T >::stored [private] |
Storage of all valid indexes; K must be convertible to integer.
Definition at line 50 of file DynamicVector.h.
Referenced by DynamicVector< T, long >::erase(), DynamicVector< T, long >::find(), and DynamicVector< T, long >::operator[]().