1 #ifndef gamgee__missing__guard
2 #define gamgee__missing__guard
15 namespace missing_values {
23 inline bool missing (
const bool value) {
return !value; }
24 inline bool missing (
const float value) {
return bcf_float_is_missing(value); }
36 template <
class MISSING_TYPE>
37 inline bool missing(
const MISSING_TYPE& value) {
38 return value.missing();
47 template <
class VALUE>
48 inline bool missing(
const std::vector<VALUE>& v) {
return v.empty(); }
52 #endif // gamgee__missing__guard
constexpr auto string_dot
"dot" is a missing string in the VCF spec.
Definition: missing.h:20
constexpr auto int16
missing value for an int16
Definition: missing.h:17
#define bcf_int32_missing
Definition: vcf.h:756
constexpr auto string_empty
empty string is a missing string
Definition: missing.h:19
constexpr auto int32
missing value for an int32
Definition: missing.h:18
constexpr auto int8
missing value for an int8
Definition: missing.h:16
Definition: exceptions.h:9
#define bcf_int16_missing
Definition: vcf.h:755
#define bcf_int8_missing
Definition: vcf.h:754
bool missing(const bool value)
Returns true if bool is false (missing).
Definition: missing.h:23