ritsuko
Helper utilities for ArtifactDB C++ code
Loading...
Searching...
No Matches
choose_missing_placeholder.hpp File Reference

Choose a placeholder for missing values. More...

#include <limits>
#include <set>
#include <type_traits>
#include <cmath>
#include <algorithm>
Include dependency graph for choose_missing_placeholder.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ritsuko
 Assorted helper functions for parsing and validation.
 

Functions

template<class Iterator , class Mask , class Type_ = typename std::remove_cv<typename std::remove_reference<decltype(*(std::declval<Iterator>()))>::type, ::type >
std::pair< bool, Type_ > ritsuko::choose_missing_integer_placeholder (Iterator start, Iterator end, Mask mask)
 
template<class Iterator , class Type_ = typename std::remove_cv<typename std::remove_reference<decltype(*(std::declval<Iterator>()))>::type, ::type >
std::pair< bool, Type_ > ritsuko::choose_missing_integer_placeholder (Iterator start, Iterator end)
 
template<class Iterator , class Mask , class Type_ = typename std::remove_cv<typename std::remove_reference<decltype(*(std::declval<Iterator>()))>::type, ::type >
std::pair< bool, Type_ > ritsuko::choose_missing_float_placeholder (Iterator start, Iterator end, Mask mask, bool skip_nan)
 
template<class Iterator , class Type_ = typename std::remove_cv<typename std::remove_reference<decltype(*(std::declval<Iterator>()))>::type, ::type >
std::pair< bool, Type_ > ritsuko::choose_missing_float_placeholder (Iterator start, Iterator end, bool skip_nan=false)
 

Detailed Description

Choose a placeholder for missing values.