Static Public Member Functions | List of all members
dynamicgraph::signal_io< double > Struct Template Reference

#include <signal-caster.h>

Inheritance diagram for dynamicgraph::signal_io< double >:
Inheritance graph
[legend]

Static Public Member Functions

static double cast (std::istringstream &iss)
 
- Static Public Member Functions inherited from dynamicgraph::signal_io_base< double >
static double cast (std::istringstream &is)
 deserialize a signal value. More...
 
static void disp (const double &value, std::ostream &os)
 serialize a signal value. More...
 
static void trace (const double &value, std::ostream &os)
 write a signal value to log file More...
 

Detailed Description

template<>
struct dynamicgraph::signal_io< double >

Template specialization of signal_io for double to workaround the limitations of the stream based approach.

When dealing with double: displaying a double on a stream is NOT the opposite of reading a double from a stream.

In practice, it means that there is no way to read a NaN, +inf, -inf from a stream!

To workaround this problem, parse special values manually (the strings used are the one produces by displaying special values on a stream).

Definition at line 122 of file signal-caster.h.

Member Function Documentation

◆ cast()

static double dynamicgraph::signal_io< double >::cast ( std::istringstream &  iss)
inlinestatic

Definition at line 123 of file signal-caster.h.


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


dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:06:03