carl  24.04
Computer ARithmetic Library
carl::parser::RationalParser< T, Iterator > Struct Template Reference

Parses rationals, being two decimals separated by a slash. More...

#include <parser.h>

Inheritance diagram for carl::parser::RationalParser< T, Iterator >:
Collaboration diagram for carl::parser::RationalParser< T, Iterator >:

Public Member Functions

 RationalParser ()
 
makeRational (const T &a, const boost::optional< T > &b) const
 

Data Fields

DecimalParser< T > number
 
qi::rule< Iterator, T(), Skippermain
 

Detailed Description

template<typename T, typename Iterator = std::string::const_iterator>
struct carl::parser::RationalParser< T, Iterator >

Parses rationals, being two decimals separated by a slash.

Definition at line 112 of file parser.h.

Constructor & Destructor Documentation

◆ RationalParser()

template<typename T , typename Iterator = std::string::const_iterator>
carl::parser::RationalParser< T, Iterator >::RationalParser ( )
inline

Definition at line 113 of file parser.h.

Here is the call graph for this function:

Member Function Documentation

◆ makeRational()

template<typename T , typename Iterator = std::string::const_iterator>
T carl::parser::RationalParser< T, Iterator >::makeRational ( const T &  a,
const boost::optional< T > &  b 
) const
inline

Definition at line 118 of file parser.h.

Here is the caller graph for this function:

Field Documentation

◆ main

template<typename T , typename Iterator = std::string::const_iterator>
qi::rule<Iterator, T(), Skipper> carl::parser::RationalParser< T, Iterator >::main

Definition at line 117 of file parser.h.

◆ number

template<typename T , typename Iterator = std::string::const_iterator>
DecimalParser<T> carl::parser::RationalParser< T, Iterator >::number

Definition at line 116 of file parser.h.


The documentation for this struct was generated from the following file: