LLVM 20.0.0git
|
An interval data composed by a Left and Right points and an associated Value. More...
#include "llvm/ADT/IntervalTree.h"
Public Member Functions | |
IntervalData ()=delete | |
IntervalData (PointType Left, PointType Right, ValueType Value) | |
virtual | ~IntervalData ()=default |
PointType | left () const |
PointType | right () const |
ValueType | value () const |
bool | left (const PointType &Point) const |
Return true if Point is inside the left bound of closed interval [Left;Right]. | |
bool | right (const PointType &Point) const |
Return true if Point is inside the right bound of closed interval [Left;Right]. | |
bool | contains (const PointType &Point) const |
Return true when Point is contained in interval [Left;Right]. | |
Protected Types | |
using | PointType = PointT |
using | ValueType = ValueT |
An interval data composed by a Left and Right points and an associated Value.
PointT corresponds to the interval endpoints type. ValueT corresponds to the interval value type.
Definition at line 198 of file IntervalTree.h.
|
protected |
Definition at line 200 of file IntervalTree.h.
|
protected |
Definition at line 201 of file IntervalTree.h.
|
delete |
|
inline |
Definition at line 210 of file IntervalTree.h.
References assert(), llvm::Left, and llvm::Right.
|
virtualdefault |
|
inline |
Return true when Point is contained in interval [Left;Right].
This is Left <= Point <= Right for closed intervals.
Definition at line 229 of file IntervalTree.h.
References llvm::IntervalData< PointT, ValueT >::left(), and llvm::IntervalData< PointT, ValueT >::right().
|
inline |
Definition at line 215 of file IntervalTree.h.
References llvm::Left.
Referenced by llvm::IntervalData< PointT, ValueT >::contains().
|
inline |
Return true if Point is inside the left bound of closed interval [Left;Right].
This is Left <= Point for closed intervals.
Definition at line 221 of file IntervalTree.h.
References llvm::IntervalData< PointT, ValueT >::left().
Referenced by llvm::IntervalData< PointT, ValueT >::left().
|
inline |
Definition at line 216 of file IntervalTree.h.
References llvm::Right.
Referenced by llvm::IntervalData< PointT, ValueT >::contains().
|
inline |
Return true if Point is inside the right bound of closed interval [Left;Right].
This is Point <= Right for closed intervals.
Definition at line 225 of file IntervalTree.h.
References llvm::IntervalData< PointT, ValueT >::right().
Referenced by llvm::IntervalData< PointT, ValueT >::right().
|
inline |
Definition at line 217 of file IntervalTree.h.