struct IntervalMapInfo

Declaration

template <typename T>
struct IntervalMapInfo { /* full declaration omitted */ };

Declared at: llvm/include/llvm/ADT/IntervalMap.h:140

Templates

T

Method Overview

  • public static inline bool adjacent(const T & a, const T & b)
  • public static inline bool nonEmpty(const T & a, const T & b)
  • public static inline bool startLess(const T & x, const T & a)
  • public static inline bool stopLess(const T & b, const T & x)

Methods

static inline bool adjacent(const T& a,
                            const T& b)

Description

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.

Declared at: llvm/include/llvm/ADT/IntervalMap.h:155

Parameters

const T& a
const T& b

static inline bool nonEmpty(const T& a,
                            const T& b)

Description

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.

Declared at: llvm/include/llvm/ADT/IntervalMap.h:161

Parameters

const T& a
const T& b

static inline bool startLess(const T& x,
                             const T& a)

Description

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.

Declared at: llvm/include/llvm/ADT/IntervalMap.h:143

Parameters

const T& x
const T& a

static inline bool stopLess(const T& b,
                            const T& x)

Description

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.

Declared at: llvm/include/llvm/ADT/IntervalMap.h:149

Parameters

const T& b
const T& x