ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::IntervalTree< T >::MaxEnd Struct Reference

the augmentation: the largest right end, nothing for no interval More...

#include <ADS/geometry/IntervalTree.h>

Public types

using Value = std::optional< T >
 the largest right end, or nothing

Static public member functions

static Value identity (void)
 no interval, the identity of the maximum
static Value from (const Interval &i, const std::size_t &)
 the right end \( b \) of the interval \( [ a , b ] \)
static Value combine (const Value &x, const Value &y)
 \( \max( x , y ) \), nothing being smaller than any end

Detailed description

template<std::totally_ordered T>
struct ADS::IntervalTree< T >::MaxEnd

the augmentation: the largest right end, nothing for no interval

Member typedef documentation

◆ Value

template<std::totally_ordered T>
using ADS::IntervalTree< T >::MaxEnd::Value = std::optional< T >

the largest right end, or nothing

Member function documentation

◆ combine()

template<std::totally_ordered T>
Value ADS::IntervalTree< T >::MaxEnd::combine ( const Value & x,
const Value & y )
inlinestatic

\( \max( x , y ) \), nothing being smaller than any end

◆ from()

template<std::totally_ordered T>
Value ADS::IntervalTree< T >::MaxEnd::from ( const Interval & i,
const std::size_t &  )
inlinestatic

the right end \( b \) of the interval \( [ a , b ] \)

◆ identity()

template<std::totally_ordered T>
Value ADS::IntervalTree< T >::MaxEnd::identity ( void )
inlinestatic

no interval, the identity of the maximum


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