FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Types | Public Member Functions | 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
 

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

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.

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.

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

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

constructor

Definition at line 139 of file snl_fei_MapContig.hpp.

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

constructor

Definition at line 156 of file snl_fei_MapContig.hpp.

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

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.

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.

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

insert

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

insert

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.

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.

template<typename VAL_TYPE >
int snl_fei::MapContig< VAL_TYPE >::size ( ) const

size

Definition at line 240 of file snl_fei_MapContig.hpp.


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