LLVM API Documentation
#include <IntervalMap.h>


Public Member Functions | |
| const KeyT & | start (unsigned i) const |
| const KeyT & | stop (unsigned i) const |
| const ValT & | value (unsigned i) const |
| KeyT & | start (unsigned i) |
| KeyT & | stop (unsigned i) |
| ValT & | value (unsigned i) |
| unsigned | findFrom (unsigned i, unsigned Size, KeyT x) const |
| unsigned | safeFind (unsigned i, KeyT x) const |
| ValT | safeLookup (KeyT x, ValT NotFound) const |
| unsigned | insertFrom (unsigned &Pos, unsigned Size, KeyT a, KeyT b, ValT y) |
Definition at line 559 of file IntervalMap.h.
| unsigned llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::findFrom | ( | unsigned | i, |
| unsigned | Size, | ||
| KeyT | x | ||
| ) | const [inline] |
findFrom - Find the first interval after i that may contain x.
| i | Starting index for the search. |
| Size | Number of elements in node. |
| x | Key to search for. |
Definition at line 575 of file IntervalMap.h.
References N.
| unsigned llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::insertFrom | ( | unsigned & | Pos, |
| unsigned | Size, | ||
| KeyT | a, | ||
| KeyT | b, | ||
| ValT | y | ||
| ) |
insertFrom - Add mapping of [a;b] to y if possible, coalescing as much as possible. This may cause the node to grow by 1, or it may cause the node to shrink because of coalescing.
| Pos | Starting index = insertFrom(0, size, a) |
| Size | Number of elements in node. |
| a | Interval start. |
| b | Interval stop. |
| y | Value be mapped. |
Definition at line 623 of file IntervalMap.h.
References N.
Referenced by llvm::IntervalMap< KeyT, ValT, N, Traits >::iterator::insert().
| unsigned llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::safeFind | ( | unsigned | i, |
| KeyT | x | ||
| ) | const [inline] |
safeFind - Find an interval that is known to exist. This is the same as findFrom except is it assumed that x is at least within range of the last interval.
| i | Starting index for the search. |
| x | Key to search for. |
Definition at line 590 of file IntervalMap.h.
References N.
Referenced by llvm::IntervalMap< KeyT, ValT, N, Traits >::const_iterator::pathFillFind().
| ValT llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::safeLookup | ( | KeyT | x, |
| ValT | NotFound | ||
| ) | const [inline] |
safeLookup - Lookup mapped value for a safe key. It is assumed that x is within range of the last entry.
| x | Key to search for. |
| NotFound | Value to return if x is not in any interval. |
Definition at line 604 of file IntervalMap.h.
| const KeyT& llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::start | ( | unsigned | i | ) | const [inline] |
Definition at line 561 of file IntervalMap.h.
Referenced by llvm::IntervalMap< KeyT, ValT, N, Traits >::const_iterator::unsafeStart().
| KeyT& llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::start | ( | unsigned | i | ) | [inline] |
Definition at line 565 of file IntervalMap.h.
| const KeyT& llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::stop | ( | unsigned | i | ) | const [inline] |
Definition at line 562 of file IntervalMap.h.
Referenced by llvm::IntervalMap< KeyT, ValT, N, Traits >::const_iterator::treeAdvanceTo(), and llvm::IntervalMap< KeyT, ValT, N, Traits >::const_iterator::unsafeStop().
| KeyT& llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::stop | ( | unsigned | i | ) | [inline] |
Definition at line 566 of file IntervalMap.h.
| const ValT& llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::value | ( | unsigned | i | ) | const [inline] |
Definition at line 563 of file IntervalMap.h.
Referenced by llvm::IntervalMap< KeyT, ValT, N, Traits >::const_iterator::unsafeValue().
| ValT& llvm::IntervalMapImpl::LeafNode< KeyT, ValT, N, Traits >::value | ( | unsigned | i | ) | [inline] |
Definition at line 567 of file IntervalMap.h.