vdj_pipe
pipeline for processing DNA sequence data
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
vdj_pipe::Seq_fls< N, S > Class Template Reference

store short sequence in an integer More...

#include <sequence_fls.hpp>

Public Types

typedef Seq_fls self_type
 

Public Member Functions

 Seq_fls (const boost::string_ref seq)
 
 Seq_fls (self_type const &ss)
 
std::size_t size () const
 
self_typeoperator= (self_type const &ss)
 
self_typeoperator= (const boost::string_ref seq)
 
bool operator== (self_type const &sf) const
 
bool operator!= (self_type const &sf) const
 
Nucleotide operator[] (const std::size_t i) const
 
void set (const unsigned i, const Nucleotide n)
 
std::string to_string (std::size_t n=self_type::length()) const
 
std::ostream & print (std::ostream &os, std::size_t n=self_type::length()) const
 

Static Public Member Functions

static std::size_t length ()
 

Static Public Attributes

static const unsigned alphabet_size = N
 

Friends

std::size_t hash_value (self_type const &seq)
 
std::ostream & operator<< (std::ostream &os, self_type const &seq)
 
bool assign (self_type &seq1, const boost::string_ref seq2)
 

Detailed Description

template<unsigned N = 4, typename S = boost::uint_least32_t>
class vdj_pipe::Seq_fls< N, S >

store short sequence in an integer

Template Parameters
Nalphabet size
storagetype

Friends And Related Function Documentation

template<unsigned N = 4, typename S = boost::uint_least32_t>
bool assign ( self_type seq1,
const boost::string_ref  seq2 
)
friend

Assign seq2 to seq1

Parameters
seq1[out]compressed sequence
seq2[in]regular sequence
Returns
true if seq2 can fit into seq1 and the alphabet of seq1 can accommodate all characters of seq2

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