FEI Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Private Attributes | Friends | List of all members
snl_fei::MapContig< VAL_TYPE > Class Template Reference

#include <snl_fei_MapContig.hpp>

Inheritance diagram for snl_fei::MapContig< VAL_TYPE >:
Inheritance graph
[legend]

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 ()
 
iteratorend ()
 
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
 

Detailed Description

template<typename VAL_TYPE>
class snl_fei::MapContig< VAL_TYPE >

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.

Member Typedef Documentation

◆ key_type

template<typename VAL_TYPE >
typedef int snl_fei::MapContig< VAL_TYPE >::key_type

alias for key_type

Definition at line 29 of file snl_fei_MapContig.hpp.

◆ mapped_type

template<typename VAL_TYPE >
typedef VAL_TYPE snl_fei::MapContig< VAL_TYPE >::mapped_type

alias for mapped_type

Definition at line 32 of file snl_fei_MapContig.hpp.

◆ value_type

template<typename VAL_TYPE >
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.

Constructor & Destructor Documentation

◆ MapContig() [1/2]

template<typename VAL_TYPE >
snl_fei::MapContig< VAL_TYPE >::MapContig ( int  firstKey,
int  lastKey 
)

◆ MapContig() [2/2]

template<typename VAL_TYPE >
snl_fei::MapContig< VAL_TYPE >::MapContig ( const MapContig< VAL_TYPE > &  src)

◆ ~MapContig()

template<typename VAL_TYPE >
snl_fei::MapContig< VAL_TYPE >::~MapContig
virtual

destructor

Definition at line 169 of file snl_fei_MapContig.hpp.

Member Function Documentation

◆ begin()

template<typename VAL_TYPE >
MapContig< VAL_TYPE >::iterator snl_fei::MapContig< VAL_TYPE >::begin
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().

◆ end()

template<typename VAL_TYPE >
MapContig< VAL_TYPE >::iterator & snl_fei::MapContig< VAL_TYPE >::end
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().

◆ insert() [1/2]

template<typename VAL_TYPE >
std::pair< iterator, bool > snl_fei::MapContig< VAL_TYPE >::insert ( value_type  val)

insert

Referenced by test_misc::serialtest3(), and test_MapContig_1().

◆ insert() [2/2]

template<typename VAL_TYPE >
iterator snl_fei::MapContig< VAL_TYPE >::insert ( iterator pos,
value_type  val 
)

insert

◆ find()

template<typename VAL_TYPE >
MapContig< VAL_TYPE >::iterator snl_fei::MapContig< VAL_TYPE >::find ( int  key)
inline

find

Definition at line 218 of file snl_fei_MapContig.hpp.

◆ lower_bound()

template<typename VAL_TYPE >
MapContig< VAL_TYPE >::iterator snl_fei::MapContig< VAL_TYPE >::lower_bound ( int  key)
inline

lower_bound

Definition at line 229 of file snl_fei_MapContig.hpp.

◆ size()

template<typename VAL_TYPE >
int snl_fei::MapContig< VAL_TYPE >::size

size

Definition at line 240 of file snl_fei_MapContig.hpp.

Referenced by test_misc::serialtest3().

Friends And Related Function Documentation

◆ iterator

template<typename VAL_TYPE >
friend class iterator
friend

Definition at line 127 of file snl_fei_MapContig.hpp.

Member Data Documentation

◆ keys_

template<typename VAL_TYPE >
std::vector<int> snl_fei::MapContig< VAL_TYPE >::keys_
private

Definition at line 129 of file snl_fei_MapContig.hpp.

Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().

◆ keysPtr_

template<typename VAL_TYPE >
int* snl_fei::MapContig< VAL_TYPE >::keysPtr_
private

Definition at line 130 of file snl_fei_MapContig.hpp.

Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().

◆ m_end_

template<typename VAL_TYPE >
iterator snl_fei::MapContig< VAL_TYPE >::m_end_
private

Definition at line 131 of file snl_fei_MapContig.hpp.

Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().

◆ values_

template<typename VAL_TYPE >
std::vector<VAL_TYPE> snl_fei::MapContig< VAL_TYPE >::values_
private

Definition at line 132 of file snl_fei_MapContig.hpp.

Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().

◆ valuesPtr_

template<typename VAL_TYPE >
VAL_TYPE* snl_fei::MapContig< VAL_TYPE >::valuesPtr_
private

Definition at line 133 of file snl_fei_MapContig.hpp.

Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().

◆ first_

template<typename VAL_TYPE >
int snl_fei::MapContig< VAL_TYPE >::first_
private

Definition at line 134 of file snl_fei_MapContig.hpp.

◆ len_

template<typename VAL_TYPE >
int snl_fei::MapContig< VAL_TYPE >::len_
private

Definition at line 135 of file snl_fei_MapContig.hpp.

Referenced by snl_fei::MapContig< VAL_TYPE >::MapContig().


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