A library for working with phylogenetic and population genetic data.
v0.27.0
IntervalClosed Struct Reference

#include <genesis/utils/containers/interval_tree/interval.hpp>

Detailed Description

Helper type to define a closed [] Interval.

Definition at line 208 of file interval.hpp.

Static Public Member Functions

template<typename NumericalType , typename std::enable_if< std::is_integral< NumericalType >::value >::type = 0>
static size_t length (NumericalType b, NumericalType e)
 
template<typename NumericalType , typename std::enable_if< ! std::is_integral< NumericalType >::value >::type = 0>
static size_t length (NumericalType b, NumericalType e)
 
template<typename NumericalType >
static std::string to_string (NumericalType b, NumericalType e, bool narrow=false)
 
template<typename NumericalType >
static bool within (NumericalType b, NumericalType e, NumericalType p)
 

Member Function Documentation

◆ length() [1/2]

static size_t length ( NumericalType  b,
NumericalType  e 
)
inlinestatic

Definition at line 231 of file interval.hpp.

◆ length() [2/2]

static size_t length ( NumericalType  b,
NumericalType  e 
)
inlinestatic

Definition at line 243 of file interval.hpp.

◆ to_string()

static std::string to_string ( NumericalType  b,
NumericalType  e,
bool  narrow = false 
)
inlinestatic

Definition at line 218 of file interval.hpp.

◆ within()

static bool within ( NumericalType  b,
NumericalType  e,
NumericalType  p 
)
inlinestatic

Definition at line 211 of file interval.hpp.


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