ARTS  2.3.1285(git:92a29ea9-dirty)
double_istream Class Reference

Input stream class for doubles that correctly handles nan and inf. More...

#include <file.h>

Public Member Functions

 double_istream (std::istream &i)
 
double_istreamparse_on_fail (double &x, bool neg)
 
double_istreamoperator>> (double &x)
 

Private Attributes

std::istream & in
 

Detailed Description

Input stream class for doubles that correctly handles nan and inf.

Definition at line 93 of file file.h.

Constructor & Destructor Documentation

◆ double_istream()

double_istream::double_istream ( std::istream &  i)
inline

Definition at line 95 of file file.h.

References parse_on_fail().

Referenced by double_imanip::operator>>().

Member Function Documentation

◆ operator>>()

double_istream& double_istream::operator>> ( double &  x)
inline

Definition at line 99 of file file.h.

Referenced by double_imanip::operator>>().

◆ parse_on_fail()

double_istream & double_istream::parse_on_fail ( double &  x,
bool  neg 
)

Definition at line 602 of file file.cc.

Referenced by double_istream().

Member Data Documentation

◆ in

std::istream& double_istream::in
private

Definition at line 113 of file file.h.

Referenced by double_imanip::operator>>(), and operator>>().


The documentation for this class was generated from the following files: