libpniio
|
complex number rule More...
#include <complex_rule.hpp>
Public Types | |
typedef CTYPE | result_type |
result type of the rule More... | |
typedef pni::core::type_info < result_type >::base_type | base_t |
base type of the complex number type More... | |
Public Member Functions | |
complex_rule () | |
default constructor More... | |
Data Fields | |
boost::mpl::at< spirit_rules, base_t >::type | base_rule |
rule to parse the base type More... | |
boost::spirit::qi::rule< ITERT, base_t()> | number_rule |
rule matching a single numeric value More... | |
boost::spirit::qi::rule< ITERT, base_t()> | sign_rule |
rule obtaining the sign More... | |
boost::spirit::qi::rule< ITERT > | i_rule |
rule matching the separator i,j,I More... | |
boost::spirit::qi::rule< ITERT, base_t()> | imag_rule |
rule determining the imaginary part More... | |
boost::spirit::qi::rule< ITERT, boost::spirit::qi::locals < base_t, base_t, base_t > , result_type()> | complex_ |
rule defining the entire complex number More... | |
This rule can be used to parse complex numbers. Complex numbers are represented as A(+|-)(I|i|j)B or, if only imaginary, as (+|-)(I|i|j)B. The imaginary part is denoted either by i, j, or I. No blanks are allowed between real and imaginary part.
ITERT | iterator type |
CTYPE | complex type |
typedef pni::core::type_info<result_type>::base_type pni::io::complex_rule< ITERT, CTYPE >::base_t |
typedef CTYPE pni::io::complex_rule< ITERT, CTYPE >::result_type |
|
inline |
boost::mpl::at<spirit_rules,base_t>::type pni::io::complex_rule< ITERT, CTYPE >::base_rule |
boost::spirit::qi::rule<ITERT, boost::spirit::qi::locals<base_t, base_t, base_t>, result_type()> pni::io::complex_rule< ITERT, CTYPE >::complex_ |
boost::spirit::qi::rule<ITERT> pni::io::complex_rule< ITERT, CTYPE >::i_rule |
boost::spirit::qi::rule<ITERT,base_t()> pni::io::complex_rule< ITERT, CTYPE >::imag_rule |
boost::spirit::qi::rule<ITERT,base_t()> pni::io::complex_rule< ITERT, CTYPE >::number_rule |
boost::spirit::qi::rule<ITERT,base_t()> pni::io::complex_rule< ITERT, CTYPE >::sign_rule |