45 template <
typename Iterator>
46 static bool parse(Iterator first, Iterator last, System& sys)
48 using boost::spirit::qi::double_;
49 using boost::spirit::qi::_1;
50 using boost::spirit::qi::phrase_parse;
51 using boost::spirit::ascii::space;
52 using boost::phoenix::ref;
57 bool r = phrase_parse(first, last,
62 if (!r || first != last)
80 std::string::const_iterator iter = input.begin();
81 std::string::const_iterator end = input.end();
83 bool s = phrase_parse(iter, end, S,boost::spirit::ascii::space, sys);
87 throw std::runtime_error(
"unable to correctly parse string in construction of system");
friend void swap(System &a, System &b)
System()
The default constructor for a system.
Definition system/system.hpp:111
Qi Parser object for parsing text into the System class.
Definition system_rules.hpp:79
Provides the parsing rules for systems in bertini2.