vdj_pipe
pipeline for processing DNA sequence data
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
vdj_pipe::detail::Id_map< Id, Obj, Stor > Class Template Reference

#include <id_map.hpp>

Collaboration diagram for vdj_pipe::detail::Id_map< Id, Obj, Stor >:
Collaboration graph
[legend]

Public Types

typedef Id_map self_type
 
typedef Id id_type
 
typedef Obj value_type
 
typedef vector_t::iterator iterator
 
typedef vector_t::const_iterator const_iterator
 
typedef base_exception Err
 

Public Member Functions

 Id_map (const id_type id0)
 
std::size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 
bool empty () const
 
id_type min_id () const
 
id_type max_id () const
 
void reserve (const id_type id)
 
value_type const & operator[] (const id_type id) const
 
value_typeoperator[] (const id_type id)
 
value_type const & at (const id_type id) const
 
value_typeat (const id_type id)
 
value_type const * find (const id_type id) const
 
value_typefind (const id_type id)
 
id_type insert (value_type const &obj)
 
value_typeinsert (const id_type id)
 
void erase (const id_type id)
 
void clear ()
 

Private Types

typedef Stor< Obj, std::allocator< Obj > > vector_t
 

Private Member Functions

std::size_t vpos (const id_type id) const
 
id_type pos2id (const std::size_t n) const
 
bool check_range (const id_type id) const
 

Private Attributes

vector_t vid_
 
Vector_set< id_typeerased_
 
id_type id0_
 

Member Typedef Documentation

template<class Id, class Obj, template< class, class > class Stor = std::vector>
typedef vector_t::const_iterator vdj_pipe::detail::Id_map< Id, Obj, Stor >::const_iterator
template<class Id, class Obj, template< class, class > class Stor = std::vector>
typedef base_exception vdj_pipe::detail::Id_map< Id, Obj, Stor >::Err
template<class Id, class Obj, template< class, class > class Stor = std::vector>
typedef Id vdj_pipe::detail::Id_map< Id, Obj, Stor >::id_type
template<class Id, class Obj, template< class, class > class Stor = std::vector>
typedef vector_t::iterator vdj_pipe::detail::Id_map< Id, Obj, Stor >::iterator
template<class Id, class Obj, template< class, class > class Stor = std::vector>
typedef Id_map vdj_pipe::detail::Id_map< Id, Obj, Stor >::self_type
template<class Id, class Obj, template< class, class > class Stor = std::vector>
typedef Obj vdj_pipe::detail::Id_map< Id, Obj, Stor >::value_type
template<class Id, class Obj, template< class, class > class Stor = std::vector>
typedef Stor<Obj, std::allocator<Obj> > vdj_pipe::detail::Id_map< Id, Obj, Stor >::vector_t
private

Constructor & Destructor Documentation

template<class Id, class Obj, template< class, class > class Stor = std::vector>
vdj_pipe::detail::Id_map< Id, Obj, Stor >::Id_map ( const id_type  id0)
inlineexplicit

Member Function Documentation

template<class Id, class Obj, template< class, class > class Stor = std::vector>
value_type const& vdj_pipe::detail::Id_map< Id, Obj, Stor >::at ( const id_type  id) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
value_type& vdj_pipe::detail::Id_map< Id, Obj, Stor >::at ( const id_type  id)
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
const_iterator vdj_pipe::detail::Id_map< Id, Obj, Stor >::begin ( ) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
bool vdj_pipe::detail::Id_map< Id, Obj, Stor >::check_range ( const id_type  id) const
inlineprivate
template<class Id, class Obj, template< class, class > class Stor = std::vector>
void vdj_pipe::detail::Id_map< Id, Obj, Stor >::clear ( )
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
bool vdj_pipe::detail::Id_map< Id, Obj, Stor >::empty ( ) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
const_iterator vdj_pipe::detail::Id_map< Id, Obj, Stor >::end ( ) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
void vdj_pipe::detail::Id_map< Id, Obj, Stor >::erase ( const id_type  id)
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
value_type const* vdj_pipe::detail::Id_map< Id, Obj, Stor >::find ( const id_type  id) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
value_type* vdj_pipe::detail::Id_map< Id, Obj, Stor >::find ( const id_type  id)
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
id_type vdj_pipe::detail::Id_map< Id, Obj, Stor >::insert ( value_type const &  obj)
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
value_type& vdj_pipe::detail::Id_map< Id, Obj, Stor >::insert ( const id_type  id)
inline
Returns
reference to object mapped to id; the object is default constructed if needed
template<class Id, class Obj, template< class, class > class Stor = std::vector>
id_type vdj_pipe::detail::Id_map< Id, Obj, Stor >::max_id ( ) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
id_type vdj_pipe::detail::Id_map< Id, Obj, Stor >::min_id ( ) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
value_type const& vdj_pipe::detail::Id_map< Id, Obj, Stor >::operator[] ( const id_type  id) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
value_type& vdj_pipe::detail::Id_map< Id, Obj, Stor >::operator[] ( const id_type  id)
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
id_type vdj_pipe::detail::Id_map< Id, Obj, Stor >::pos2id ( const std::size_t  n) const
inlineprivate
template<class Id, class Obj, template< class, class > class Stor = std::vector>
void vdj_pipe::detail::Id_map< Id, Obj, Stor >::reserve ( const id_type  id)
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
std::size_t vdj_pipe::detail::Id_map< Id, Obj, Stor >::size ( ) const
inline
template<class Id, class Obj, template< class, class > class Stor = std::vector>
std::size_t vdj_pipe::detail::Id_map< Id, Obj, Stor >::vpos ( const id_type  id) const
inlineprivate

Member Data Documentation

template<class Id, class Obj, template< class, class > class Stor = std::vector>
Vector_set<id_type> vdj_pipe::detail::Id_map< Id, Obj, Stor >::erased_
private
template<class Id, class Obj, template< class, class > class Stor = std::vector>
id_type vdj_pipe::detail::Id_map< Id, Obj, Stor >::id0_
private
template<class Id, class Obj, template< class, class > class Stor = std::vector>
vector_t vdj_pipe::detail::Id_map< Id, Obj, Stor >::vid_
private

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