12 #ifndef HAMMER_SettingVisitors_HH
13 #define HAMMER_SettingVisitors_HH
20 bool operator()(boost::blank a, boost::blank b)
const;
24 bool operator()(std::complex<double> a, std::complex<double> b)
const;
25 bool operator()(
const std::string& a,
const std::string& b)
const;
26 bool operator()(
const std::vector<double>& a,
const std::vector<double>& b)
const;
27 bool operator()(
const std::vector<std::string>& a,
const std::vector<std::string>& b)
const;
29 template <
typename T,
typename S>
30 typename std::enable_if<!std::is_same<T, S>::value,
bool>::type
operator()(T, S)
const {
35 class SettingWriter :
public boost::static_visitor<Setting::WrittenSettingType> {
59 YAML::Node
operator()(std::complex<double> a)
const;
60 YAML::Node
operator()(
const std::string& a)
const;
61 YAML::Node
operator()(
const std::vector<double>& a)
const;
62 YAML::Node
operator()(
const std::vector<std::string>& a)
const;
71 std::string
operator()(std::complex<double> a)
const;
72 std::string
operator()(
const std::string& a)
const;
73 std::string
operator()(
const std::vector<double>& a)
const;
74 std::string
operator()(
const std::vector<std::string>& a)
const;
SettingWriter(flatbuffers::FlatBufferBuilder *builder)
std::vector< std::vector< double >> MatrixType
std::string operator()(boost::blank a) const
std::enable_if<!std::is_same< T, S >::value, bool >::type operator()(T, S) const
flatbuffers::FlatBufferBuilder * _builder
bool operator()(boost::blank a, boost::blank b) const
std::pair< flatbuffers::Offset< void >, Serial::FBSettingTypes > WrittenSettingType
YAML::Node operator()(boost::blank a) const
Setting::WrittenSettingType operator()(boost::blank a) const