LLVM 22.0.0git
llvm::IntervalMapInfo< T > Struct Template Reference

#include "llvm/ADT/IntervalMap.h"

Inheritance diagram for llvm::IntervalMapInfo< T >:
[legend]

Static Public Member Functions

static bool startLess (const T &x, const T &a)
 startLess - Return true if x is not in [a;b].
static bool stopLess (const T &b, const T &x)
 stopLess - Return true if x is not in [a;b].
static bool adjacent (const T &a, const T &b)
 adjacent - Return true when the intervals [x;a] and [b;y] can coalesce.
static bool nonEmpty (const T &a, const T &b)
 nonEmpty - Return true if [a;b] is non-empty.

Detailed Description

template<typename T>
struct llvm::IntervalMapInfo< T >

Definition at line 141 of file IntervalMap.h.

Member Function Documentation

◆ adjacent()

template<typename T>
bool llvm::IntervalMapInfo< T >::adjacent ( const T & a,
const T & b )
inlinestatic

adjacent - Return true when the intervals [x;a] and [b;y] can coalesce.

This is a+1 == b for closed intervals, a == b for half-open intervals.

Definition at line 156 of file IntervalMap.h.

References T.

◆ nonEmpty()

template<typename T>
bool llvm::IntervalMapInfo< T >::nonEmpty ( const T & a,
const T & b )
inlinestatic

nonEmpty - Return true if [a;b] is non-empty.

This is a <= b for a closed interval, a < b for [a;b) half-open intervals.

Definition at line 162 of file IntervalMap.h.

References T.

◆ startLess()

template<typename T>
bool llvm::IntervalMapInfo< T >::startLess ( const T & x,
const T & a )
inlinestatic

startLess - Return true if x is not in [a;b].

This is x < a both for closed intervals and for [a;b) half-open intervals.

Definition at line 144 of file IntervalMap.h.

References T.

◆ stopLess()

template<typename T>
bool llvm::IntervalMapInfo< T >::stopLess ( const T & b,
const T & x )
inlinestatic

stopLess - Return true if x is not in [a;b].

This is b < x for a closed interval, b <= x for [a;b) half-open intervals.

Definition at line 150 of file IntervalMap.h.

References T.


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