MySQL 9.0.0
Source Code Documentation
Discrete_interval Class Reference

#include <discrete_interval.h>

Public Member Functions

bool in_range (const ulonglong value) const
 Determine if the given value is within the interval. More...
 
void replace (ulonglong start, ulonglong val, ulonglong incr)
 
 Discrete_interval (ulonglong start, ulonglong val, ulonglong incr)
 
 Discrete_interval ()
 
ulonglong minimum () const
 
ulonglong values () const
 
ulonglong maximum () const
 
bool merge_if_contiguous (ulonglong start, ulonglong val, ulonglong incr)
 

Public Attributes

Discrete_intervalnext
 

Private Attributes

ulonglong interval_min
 
ulonglong interval_values
 
ulonglong interval_max
 

Constructor & Destructor Documentation

◆ Discrete_interval() [1/2]

Discrete_interval::Discrete_interval ( ulonglong  start,
ulonglong  val,
ulonglong  incr 
)
inline

◆ Discrete_interval() [2/2]

Discrete_interval::Discrete_interval ( )
inline

Member Function Documentation

◆ in_range()

bool Discrete_interval::in_range ( const ulonglong  value) const
inline

Determine if the given value is within the interval.

◆ maximum()

ulonglong Discrete_interval::maximum ( ) const
inline

◆ merge_if_contiguous()

bool Discrete_interval::merge_if_contiguous ( ulonglong  start,
ulonglong  val,
ulonglong  incr 
)
inline

◆ minimum()

ulonglong Discrete_interval::minimum ( ) const
inline

◆ replace()

void Discrete_interval::replace ( ulonglong  start,
ulonglong  val,
ulonglong  incr 
)
inline

◆ values()

ulonglong Discrete_interval::values ( ) const
inline

Member Data Documentation

◆ interval_max

ulonglong Discrete_interval::interval_max
private

◆ interval_min

ulonglong Discrete_interval::interval_min
private

◆ interval_values

ulonglong Discrete_interval::interval_values
private

◆ next

Discrete_interval* Discrete_interval::next

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