28 #include <pni/core/types.hpp>
29 #include <boost/spirit/include/karma.hpp>
30 #include <boost/spirit/include/phoenix.hpp>
77 template<
typename Arg>
110 template<
typename Arg>
120 boost::phoenix::function<get_real>
real;
122 boost::phoenix::function<get_imag>
imag;
125 boost::spirit::karma::real_generator<T,float_policy<T>>
float_rule;
127 boost::spirit::karma::real_generator<T,imag_policy<T>>
imag_rule;
138 using boost::spirit::karma::_1;
139 using boost::spirit::karma::_val;
141 #pragma clang diagnostic push
142 #pragma clang diagnostic ignored "-Wunsequenced"
145 imag_rule[_1 =
imag(_val)];
147 #pragma clang diagnostic pop
get imaginary part
Definition: complex_generator.hpp:90
boost::spirit::karma::real_generator< T, float_policy< T > > float_rule
rule to produce the real part
Definition: complex_generator.hpp:125
T type
result type
Definition: complex_generator.hpp:64
result type of the lazy function
Definition: complex_generator.hpp:62
Definition: cbf_reader.hpp:41
T type
result type
Definition: complex_generator.hpp:97
boost::phoenix::function< get_real > real
instance of the get_real lazy function
Definition: complex_generator.hpp:120
T operator()(Arg const &n) const
get imaginary part
Definition: complex_generator.hpp:111
boost::spirit::karma::real_generator< T, imag_policy< T > > imag_rule
rule to produce the imaginary part
Definition: complex_generator.hpp:127
complex_generator()
default constructor
Definition: complex_generator.hpp:136
T operator()(Arg const &n) const
get real part
Definition: complex_generator.hpp:78
get real part
Definition: complex_generator.hpp:57
generator for complex numbers
Definition: complex_generator.hpp:49
boost::phoenix::function< get_imag > imag
instance of the get_imag lazy function
Definition: complex_generator.hpp:122
complex number rule
Definition: complex_rule.hpp:53
result type of the lazy function
Definition: complex_generator.hpp:95