FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <snl_fei_MapContig.hpp>
Classes | |
class | iterator |
Public Types | |
typedef int | key_type |
typedef VAL_TYPE | mapped_type |
typedef std::pair< int, VAL_TYPE > | value_type |
Public Member Functions | |
MapContig (int firstKey, int lastKey) | |
MapContig (const MapContig< VAL_TYPE > &src) | |
virtual | ~MapContig () |
iterator | begin () |
iterator & | end () |
std::pair< iterator, bool > | insert (value_type val) |
iterator | insert (iterator &pos, value_type val) |
iterator | find (int key) |
iterator | lower_bound (int key) |
int | size () const |
Private Attributes | |
std::vector< int > | keys_ |
int * | keysPtr_ |
iterator | m_end_ |
std::vector< VAL_TYPE > | values_ |
VAL_TYPE * | valuesPtr_ |
int | first_ |
int | len_ |
Friends | |
class | iterator |
fei implementation class, many std::map characteristics but optimized for key-values that are contiguous
Definition at line 19 of file snl_fei_MapContig.hpp.
typedef int snl_fei::MapContig< VAL_TYPE >::key_type |
alias for key_type
Definition at line 29 of file snl_fei_MapContig.hpp.
typedef VAL_TYPE snl_fei::MapContig< VAL_TYPE >::mapped_type |
alias for mapped_type
Definition at line 32 of file snl_fei_MapContig.hpp.
typedef std::pair<int,VAL_TYPE> snl_fei::MapContig< VAL_TYPE >::value_type |
alias for value_type
Definition at line 35 of file snl_fei_MapContig.hpp.
snl_fei::MapContig< VAL_TYPE >::MapContig | ( | int | firstKey, |
int | lastKey | ||
) |
constructor
Definition at line 139 of file snl_fei_MapContig.hpp.
References snl_fei::MapContig< VAL_TYPE >::iterator, snl_fei::MapContig< VAL_TYPE >::keys_, snl_fei::MapContig< VAL_TYPE >::keysPtr_, snl_fei::MapContig< VAL_TYPE >::len_, snl_fei::MapContig< VAL_TYPE >::m_end_, snl_fei::MapContig< VAL_TYPE >::values_, and snl_fei::MapContig< VAL_TYPE >::valuesPtr_.
snl_fei::MapContig< VAL_TYPE >::MapContig | ( | const MapContig< VAL_TYPE > & | src | ) |
constructor
Definition at line 156 of file snl_fei_MapContig.hpp.
References snl_fei::MapContig< VAL_TYPE >::iterator, snl_fei::MapContig< VAL_TYPE >::keys_, snl_fei::MapContig< VAL_TYPE >::keysPtr_, snl_fei::MapContig< VAL_TYPE >::len_, snl_fei::MapContig< VAL_TYPE >::m_end_, snl_fei::MapContig< VAL_TYPE >::values_, and snl_fei::MapContig< VAL_TYPE >::valuesPtr_.
|
virtual |
destructor
Definition at line 169 of file snl_fei_MapContig.hpp.
|
inline |
iterator pointing to beginning of MapContig contents
Definition at line 174 of file snl_fei_MapContig.hpp.
Referenced by test_misc::serialtest3(), and test_MapContig_1().
|
inline |
iterator pointing one past the end of MapContig contents
Definition at line 180 of file snl_fei_MapContig.hpp.
Referenced by test_misc::serialtest3(), and test_MapContig_1().
std::pair<iterator,bool> snl_fei::MapContig< VAL_TYPE >::insert | ( | value_type | val | ) |
insert
Referenced by test_misc::serialtest3(), and test_MapContig_1().
iterator snl_fei::MapContig< VAL_TYPE >::insert | ( | iterator & | pos, |
value_type | val | ||
) |
insert
|
inline |
find
Definition at line 218 of file snl_fei_MapContig.hpp.
|
inline |
lower_bound
Definition at line 229 of file snl_fei_MapContig.hpp.
int snl_fei::MapContig< VAL_TYPE >::size | ( | ) | const |
|
friend |
Definition at line 127 of file snl_fei_MapContig.hpp.
Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().
|
private |
Definition at line 129 of file snl_fei_MapContig.hpp.
Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().
|
private |
Definition at line 130 of file snl_fei_MapContig.hpp.
Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().
|
private |
Definition at line 131 of file snl_fei_MapContig.hpp.
Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().
|
private |
Definition at line 132 of file snl_fei_MapContig.hpp.
Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().
|
private |
Definition at line 133 of file snl_fei_MapContig.hpp.
Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().
|
private |
Definition at line 134 of file snl_fei_MapContig.hpp.
|
private |
Definition at line 135 of file snl_fei_MapContig.hpp.
Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().