vdj_pipe
pipeline for processing DNA sequence data
Classes | Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
vdj_pipe::Value_map Class Reference

Store values mapped against name strings and value IDs. More...

#include <value_map.hpp>

Inheritance diagram for vdj_pipe::Value_map:
Inheritance graph
[legend]

Classes

struct  Err
 

Public Types

typedef map_type::iterator iterator
 
typedef iterator const_iterator
 

Public Member Functions

 Value_map ()
 
iterator begin () const
 
iterator end () const
 
std::size_t size () const
 
void clear_values ()
 
std::string const & name (const Val_id vid) const
 
Val_id insert_name (std::string const &name)
 
Val_id insert_new_name (std::string const &name)
 
Val_id const * find_id (std::string const &name) const
 
Val_id value_id (std::string const &name) const
 
value_variant const & operator[] (const Val_id vid) const
 
value_variantoperator[] (const Val_id vid)
 
long read_count () const
 
void read_count_reset ()
 
void read_count_incr ()
 
long file_read_count () const
 
void file_read_count_reset ()
 
void file_read_count_incr ()
 
std::string const & seq_file_name () const
 
void seq_file_name (std::string const &fn)
 
std::string const & read_id_nothrow () const
 
std::string const & read_id () const
 
void read_id (std::string const &id)
 
template<typename T >
T const & value (std::string const &name) const
 
template<typename T >
T const * value_ptr (std::string const &name) const
 
template<typename T >
T const & value (const Val_id id) const
 
template<typename T >
T const * value_ptr (const Val_id id) const
 
std::string const & str_nothrow (const Val_id id) const
 

Protected Member Functions

std::string sequence (const Val_id seq_id, const Val_id trim_id, const bool trimmed, const bool reverse_compl) const
 
Qual_record::quality quality (const Val_id qual_id, const Val_id trim_id, const bool trimmed, const bool reverse_compl) const
 

Private Types

enum  { read_count_i = 1, file_read_count_i = 2, seq_fn_i = 3, read_id_i = 4 }
 
typedef detail::Named_value_map< Val_id, value_variantmap_type
 
typedef boost::shared_ptr< map_typemap_ptr
 

Private Attributes

map_ptr map_
 

Detailed Description

Store values mapped against name strings and value IDs.

Member Typedef Documentation

typedef boost::shared_ptr<map_type> vdj_pipe::Value_map::map_ptr
private

Member Enumeration Documentation

anonymous enum
private
Enumerator
read_count_i 
file_read_count_i 
seq_fn_i 
read_id_i 

Constructor & Destructor Documentation

vdj_pipe::Value_map::Value_map ( )
inline

Member Function Documentation

iterator vdj_pipe::Value_map::begin ( ) const
inline
void vdj_pipe::Value_map::clear_values ( )
inline
iterator vdj_pipe::Value_map::end ( ) const
inline
long vdj_pipe::Value_map::file_read_count ( ) const
inline
void vdj_pipe::Value_map::file_read_count_incr ( )
inline
void vdj_pipe::Value_map::file_read_count_reset ( )
inline
Val_id const* vdj_pipe::Value_map::find_id ( std::string const &  name) const
inline
Val_id vdj_pipe::Value_map::insert_name ( std::string const &  name)
inline
Val_id vdj_pipe::Value_map::insert_new_name ( std::string const &  name)
inline
std::string const& vdj_pipe::Value_map::name ( const Val_id  vid) const
inline
value_variant const& vdj_pipe::Value_map::operator[] ( const Val_id  vid) const
inline
value_variant& vdj_pipe::Value_map::operator[] ( const Val_id  vid)
inline
Qual_record::quality vdj_pipe::Value_map::quality ( const Val_id  qual_id,
const Val_id  trim_id,
const bool  trimmed,
const bool  reverse_compl 
) const
inlineprotected
long vdj_pipe::Value_map::read_count ( ) const
inline
void vdj_pipe::Value_map::read_count_incr ( )
inline
void vdj_pipe::Value_map::read_count_reset ( )
inline
std::string const& vdj_pipe::Value_map::read_id ( ) const
inline
void vdj_pipe::Value_map::read_id ( std::string const &  id)
inline
std::string const& vdj_pipe::Value_map::read_id_nothrow ( ) const
inline
std::string const& vdj_pipe::Value_map::seq_file_name ( ) const
inline
void vdj_pipe::Value_map::seq_file_name ( std::string const &  fn)
inline
std::string vdj_pipe::Value_map::sequence ( const Val_id  seq_id,
const Val_id  trim_id,
const bool  trimmed,
const bool  reverse_compl 
) const
inlineprotected
std::size_t vdj_pipe::Value_map::size ( ) const
inline
std::string const& vdj_pipe::Value_map::str_nothrow ( const Val_id  id) const
inline
template<typename T >
T const& vdj_pipe::Value_map::value ( std::string const &  name) const
inline
template<typename T >
T const& vdj_pipe::Value_map::value ( const Val_id  id) const
inline
Val_id vdj_pipe::Value_map::value_id ( std::string const &  name) const
inline
template<typename T >
T const* vdj_pipe::Value_map::value_ptr ( std::string const &  name) const
inline
template<typename T >
T const* vdj_pipe::Value_map::value_ptr ( const Val_id  id) const
inline

Member Data Documentation

map_ptr vdj_pipe::Value_map::map_
private

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