7 #ifndef VALUE_VARIANT_HPP_ 8 #define VALUE_VARIANT_HPP_ 10 #include "boost/array.hpp" 11 #include "boost/mpl/begin.hpp" 12 #include "boost/mpl/distance.hpp" 13 #include "boost/mpl/find.hpp" 14 #include "boost/mpl/size.hpp" 15 #include "boost/variant.hpp" 36 template<
class ChT,
class Tr>
inline 38 std::basic_ostream<ChT,Tr>& os,
41 return os <<
"Undetermined";
46 typedef boost::variant<
47 Blank, bool, long, double, std::string,
59 static const array a =
61 "blank",
"bool",
"integer",
"float",
"string",
71 typename boost::mpl::begin<value_variant::types>::type,
72 typename boost::mpl::find<value_variant::types,T>::type
79 return boost::get<Blank>(&vv);
84 struct Type_name :
public boost::static_visitor<std::string const&> {
value_variant parse_variant(std::string const &s)
Definition: value_variant.cpp:19
Definition: value_variant.hpp:69
Qual_record::quality::value_type value
Definition: find_interval_run.cpp:17
Definition: sequence_record.hpp:35
std::string const & variable_type_str(const int which)
Definition: value_variant.hpp:54
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
bool is_blank(value_variant const &vv)
Definition: value_variant.hpp:78
bool operator<(Blank const &) const
Definition: value_variant.hpp:27
#define VDJ_PIPE_DECL
Definition: config.hpp:23
Definition: value_variant.hpp:84
boost::variant< Blank, bool, long, double, std::string, sequence_interval, Qual_record::quality > value_variant
Definition: value_variant.hpp:50
std::size_t hash_value(File const &f)
Definition: file.cpp:158
boost::numeric::interval< int, boost::numeric::interval_lib::policies< boost::numeric::interval_lib::rounded_math< int >, detail::Interval_checking_policy< int > > > sequence_interval
Definition: sequence_interval.hpp:40
std::basic_ostream< ChT, Tr > & operator<<(std::basic_ostream< ChT, Tr > &os, Blank const &)
Definition: value_variant.hpp:37
Definition: value_variant.hpp:25
std::string const & operator()(T const &) const
Definition: value_variant.hpp:86
bool operator==(Blank const &) const
Definition: value_variant.hpp:26