Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Interval_Tree_Node_Data< T > Class Template Reference

Data portion of an interval tree node. More...

#include <tpl_interval_tree.H>

Inheritance diagram for Aleph::Interval_Tree_Node_Data< T >:
[legend]

Public Member Functions

 Interval_Tree_Node_Data () noexcept(std::is_nothrow_default_constructible_v< T >)
 
 Interval_Tree_Node_Data (SentinelCtor) noexcept(std::is_nothrow_default_constructible_v< T >)
 
unsigned longgetPriority () noexcept
 
TgetMaxEndpoint () noexcept
 
const TgetMaxEndpoint () const noexcept
 

Static Public Member Functions

static void reset () noexcept
 

Private Attributes

unsigned long priority
 
T max_endpoint
 

Detailed Description

template<typename T>
class Aleph::Interval_Tree_Node_Data< T >

Data portion of an interval tree node.

Stores the random priority (for treap heap property) and the maximum endpoint in the subtree (for interval query pruning).

Template Parameters
TEndpoint type.

Definition at line 259 of file tpl_interval_tree.H.

Constructor & Destructor Documentation

◆ Interval_Tree_Node_Data() [1/2]

Definition at line 265 of file tpl_interval_tree.H.

◆ Interval_Tree_Node_Data() [2/2]

Definition at line 269 of file tpl_interval_tree.H.

Member Function Documentation

◆ getMaxEndpoint() [1/2]

template<typename T >
const T & Aleph::Interval_Tree_Node_Data< T >::getMaxEndpoint ( ) const
inlinenoexcept

◆ getMaxEndpoint() [2/2]

template<typename T >
T & Aleph::Interval_Tree_Node_Data< T >::getMaxEndpoint ( )
inlinenoexcept

Definition at line 275 of file tpl_interval_tree.H.

References Aleph::Interval_Tree_Node_Data< T >::max_endpoint.

Referenced by Aleph::MAX_EP().

◆ getPriority()

template<typename T >
unsigned long & Aleph::Interval_Tree_Node_Data< T >::getPriority ( )
inlinenoexcept

◆ reset()

template<typename T >
static void Aleph::Interval_Tree_Node_Data< T >::reset ( )
inlinestaticnoexcept

Member Data Documentation

◆ max_endpoint

◆ priority

template<typename T >
unsigned long Aleph::Interval_Tree_Node_Data< T >::priority
private

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