ARTS  2.2.66
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 101 of file file.h.

Constructor & Destructor Documentation

◆ double_istream()

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

Definition at line 103 of file file.h.

Member Function Documentation

◆ operator>>()

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

Definition at line 107 of file file.h.

References in, and parse_on_fail().

◆ parse_on_fail()

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

Definition at line 649 of file file.cc.

References in.

Referenced by operator>>().

Member Data Documentation

◆ in

std::istream& double_istream::in
private

Definition at line 119 of file file.h.

Referenced by operator>>(), and parse_on_fail().


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