ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::MaxAugmentation< V > Struct Template Reference

the largest of the values, whose identity is \( -\infty \) if V has it, its smallest value otherwise: a commutative and selective monoid More...

#include <ADS/tree/JoinTree.h>

Public types

using Value = V
 the maxima, of the type of the values

Static public member functions

static Value identity (void)
 the smallest value of the type
template<class K>
static Value from (const K &, const V &v)
 the value \( v \) of the pair
static Value combine (const Value &a, const Value &b)
 \( \max( a , b ) \)

Static public attributes

static constexpr bool commutative = true
 the order does not count
static constexpr bool selective = true
 the maximum is one of two

Detailed description

template<class V>
struct ADS::MaxAugmentation< V >

the largest of the values, whose identity is \( -\infty \) if V has it, its smallest value otherwise: a commutative and selective monoid

Member typedef documentation

◆ Value

template<class V>
using ADS::MaxAugmentation< V >::Value = V

the maxima, of the type of the values

Member function documentation

◆ combine()

template<class V>
Value ADS::MaxAugmentation< V >::combine ( const Value & a,
const Value & b )
inlinestatic

\( \max( a , b ) \)

◆ from()

template<class V>
template<class K>
Value ADS::MaxAugmentation< V >::from ( const K & ,
const V & v )
inlinestatic

the value \( v \) of the pair

◆ identity()

template<class V>
Value ADS::MaxAugmentation< V >::identity ( void )
inlinestatic

the smallest value of the type

Member data documentation

◆ commutative

template<class V>
bool ADS::MaxAugmentation< V >::commutative = true
staticconstexpr

the order does not count

◆ selective

template<class V>
bool ADS::MaxAugmentation< V >::selective = true
staticconstexpr

the maximum is one of two


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