All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Functions
NumberParsing.h File Reference
#include <algorithm>
#include <cassert>
#include <cctype>
#include <tuple>
#include <limits>
#include <stdexcept>
#include <type_traits>
#include "Enforce.h"

Go to the source code of this file.

Classes

class  Aux::Parsing::Impl::IntegerTag
 
class  Aux::Parsing::Impl::RealTag
 

Namespaces

 Aux
 
 Aux::Parsing
 
 Aux::Parsing::Impl
 

Typedefs

template<typename T >
using Aux::Parsing::Impl::ArithmeticTag = typename std::conditional< std::is_integral< T >::value, IntegerTag, typename std::conditional< std::is_floating_point< T >::value, RealTag, void >::type >::type
 

Functions

template<typename CharIterator >
std::tuple< CharIterator, char > Aux::Parsing::Impl::dropSpaces (CharIterator it, CharIterator end)
 
template<typename Integer >
double Aux::Parsing::Impl::powerOf10 (Integer exp)
 
template<typename Integer , typename CharIterator , typename ValidationPolicy >
std::tuple< Integer, CharIterator > Aux::Parsing::Impl::strTo (CharIterator it, CharIterator end, IntegerTag)
 
template<typename Real , typename CharIterator , typename ValidationPolicy >
std::tuple< Real, CharIterator > Aux::Parsing::Impl::strTo (CharIterator it, CharIterator end, RealTag)
 
template<typename Number , typename CharIterator , typename ValidationPolicy = Checkers::Asserter>
std::tuple< Number, CharIterator > Aux::Parsing::strTo (CharIterator it, CharIterator end)
 Parses a range of characters as number. More...