|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Storage-agnostic "either int or double" value with CSV-friendly streaming. More...
#include <CsvLog.hpp>
Public Member Functions | |
| template<class T > | |
| std::enable_if_t< std::is_integral_v< T >, LogSimpleDIValue & > | operator= (T v) |
| template<class T > | |
| std::enable_if_t<!std::is_integral_v< T >, LogSimpleDIValue & > | operator= (T v) |
Public Attributes | |
| int64_t | i {UnInitIndex} |
| double | d {0} |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const LogSimpleDIValue &v) |
Storage-agnostic "either int or double" value with CSV-friendly streaming.
Each instance holds either an integer (i) or a double (d); the unused field is set to the UnInitIndex / UnInitReal sentinel. The assignment operator dispatches on the source type, and operator<< prints whichever field is live. Designed for columns where some rows are integer counts and others are floating residuals.
Definition at line 23 of file CsvLog.hpp.
|
inline |
Definition at line 29 of file CsvLog.hpp.
|
inline |
Definition at line 38 of file CsvLog.hpp.
|
friend |
Definition at line 45 of file CsvLog.hpp.
| double DNDS::LogSimpleDIValue::d {0} |
Definition at line 26 of file CsvLog.hpp.
| int64_t DNDS::LogSimpleDIValue::i {UnInitIndex} |
Definition at line 25 of file CsvLog.hpp.