7 #ifndef MIN_MATCH_LENGTH_HPP_ 8 #define MIN_MATCH_LENGTH_HPP_ 18 public std::unary_function<std::string, std::size_t> {
25 public std::unary_function<std::string, std::size_t> {
32 return std::min(sz, min_);
43 public std::unary_function<std::string, std::size_t> {
46 : min_(min), end_(end)
67 public std::unary_function<std::string, std::size_t> {
73 BOOST_ASSERT(f_ > 0.0 && f_ <= 1.0 &&
"invalid fraction");
94 public std::unary_function<std::string, std::size_t> {
107 if( min_ == 0 && end_ == 0 && f_ == 0.0 ) f_ = 1.0;
109 if( min_ < 0 ) BOOST_THROW_EXCEPTION(
115 if( end_ < 0 ) BOOST_THROW_EXCEPTION(
121 if( f_ < 0.0 || f_ > 1.0 ) BOOST_THROW_EXCEPTION(
123 <<
Err::msg_t(
"invalid minimal match fraction")
Match_min_length(const std::size_t min)
Definition: min_match_length.hpp:27
Match_fraction_length(const int min, const double f)
Definition: min_match_length.hpp:70
int operator()(const int sz) const
Definition: min_match_length.hpp:19
int operator()(const int sz) const
Definition: min_match_length.hpp:49
int operator()(const int sz) const
Definition: min_match_length.hpp:31
int operator()(const int sz) const
Definition: min_match_length.hpp:128
Require full sequence to match.
Definition: min_match_length.hpp:17
int operator()(const int sz) const
Definition: min_match_length.hpp:76
double f_
Definition: min_match_length.hpp:144
boost::error_info< struct errinfo_int1_, int > int1_t
Definition: exception.hpp:28
int end_
Definition: min_match_length.hpp:143
Definition: min_match_length.hpp:96
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
double f_
Definition: min_match_length.hpp:88
int min_
Definition: min_match_length.hpp:142
Get_match_length(const int min=0, const int end=0, const double f=0.0)
Definition: min_match_length.hpp:98
int min_
Definition: min_match_length.hpp:36
Match_ignore_ends(const int min, const int end)
Definition: min_match_length.hpp:45
boost::error_info< struct errinfo_float1_, double > float1_t
Definition: exception.hpp:31
Set a fraction of sequence length to match.
Definition: min_match_length.hpp:66
Definition: exception.hpp:23
boost::error_info< struct errinfo_message_, std::string > msg_t
Definition: exception.hpp:24
int min_
Definition: min_match_length.hpp:87
Set a minimal sequence length to match allowing for some mismatch at ends.
Definition: min_match_length.hpp:42
Set a fraction of sequence length to match.
Definition: min_match_length.hpp:93
int end_
Definition: min_match_length.hpp:61
int min_
Definition: min_match_length.hpp:60
Set a minimal sequence length to match.
Definition: min_match_length.hpp:24
Definition: min_match_length.hpp:69
const std::size_t sz
Definition: vector_set_test.cpp:27