OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Interval< T, U > Struct Template Reference

#include <Intervals.h>

Public Member Functions

size () const
 

Public Attributes

T const begin
 
T const end
 
U const index
 

Detailed Description

template<typename T, typename U = typename std::make_unsigned<T>::type>
struct Interval< T, U >

Definition at line 66 of file Intervals.h.

Member Function Documentation

template<typename T , typename U = typename std::make_unsigned<T>::type>
U Interval< T, U >::size ( ) const
inline

Definition at line 70 of file Intervals.h.

References Interval< T, U >::begin, and Interval< T, U >::end.

70 { return U(end) - U(begin); }
T const begin
Definition: Intervals.h:67
T const end
Definition: Intervals.h:68

Member Data Documentation

template<typename T , typename U = typename std::make_unsigned<T>::type>
T const Interval< T, U >::begin

Definition at line 67 of file Intervals.h.

Referenced by Interval< T, U >::size().

template<typename T , typename U = typename std::make_unsigned<T>::type>
T const Interval< T, U >::end

Definition at line 68 of file Intervals.h.

Referenced by Interval< T, U >::size().

template<typename T , typename U = typename std::make_unsigned<T>::type>
U const Interval< T, U >::index

Definition at line 69 of file Intervals.h.


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