carl  24.04
Computer ARithmetic Library
carl::parser Namespace Reference

Data Structures

struct  isDivisible
 
struct  isDivisible< true >
 
struct  isDivisible< false >
 
struct  RationalPolicies
 Specialization of qi::real_policies for our rational types. More...
 
struct  IntegerParser
 Parses (signed) integers. More...
 
struct  DecimalParser
 Parses decimals, including floating point and scientific notation. More...
 
struct  RationalParser
 Parses rationals, being two decimals separated by a slash. More...
 

Typedefs

using Skipper = qi::space_type
 

Functions

template<typename Parser , typename T >
bool parse_impl (const std::string &input, T &output)
 
template<typename Parser , typename T , typename S >
bool parse_impl (const std::string &input, T &output, const S &skipper)
 
template<typename T >
bool parseInteger (const std::string &input, T &output)
 
template<typename T >
bool parseDecimal (const std::string &input, T &output)
 
template<typename T >
bool parseRational (const std::string &input, T &output)
 

Typedef Documentation

◆ Skipper

using carl::parser::Skipper = typedef qi::space_type

Definition at line 20 of file parser.h.

Function Documentation

◆ parse_impl() [1/2]

template<typename Parser , typename T >
bool carl::parser::parse_impl ( const std::string &  input,
T &  output 
)

Definition at line 125 of file parser.h.

Here is the call graph for this function:

◆ parse_impl() [2/2]

template<typename Parser , typename T , typename S >
bool carl::parser::parse_impl ( const std::string &  input,
T &  output,
const S &  skipper 
)

Definition at line 133 of file parser.h.

◆ parseDecimal()

template<typename T >
bool carl::parser::parseDecimal ( const std::string &  input,
T &  output 
)

Definition at line 146 of file parser.h.

Here is the caller graph for this function:

◆ parseInteger()

template<typename T >
bool carl::parser::parseInteger ( const std::string &  input,
T &  output 
)

Definition at line 142 of file parser.h.

◆ parseRational()

template<typename T >
bool carl::parser::parseRational ( const std::string &  input,
T &  output 
)

Definition at line 150 of file parser.h.

Here is the caller graph for this function: