class IntervalMap::const_iterator

Declaration

class IntervalMap::const_iterator { /* full declaration omitted */ };

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

Member Variables

protected IntervalMap<KeyT, ValT, N, Traits>* map = nullptr
protected IntervalMapImpl::Path path

Method Overview

Methods

void advanceTo(KeyT x)

Description

advanceTo - Move to the first interval with stop >= x, or end(). The search is started from the current position, and no earlier positions can be found. This is much faster than find() for small moves.

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

Parameters

KeyT x

bool atBegin() const

Description

atBegin - Return true if the current position is the first map entry.

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

bool branched() const

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

const_iterator(
    const IntervalMap<KeyT, ValT, N, Traits>& map)

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

Parameters

const IntervalMap<KeyT, ValT, N, Traits>& map

const_iterator()

Description

const_iterator - Create an iterator that isn't pointing anywhere.

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

void find(KeyT x)

Description

find - Move to the first interval with stop >= x, or end(). This is a full search from the root, the current position is ignored.

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

Parameters

KeyT x

void goToBegin()

Description

goToBegin - Move to the first interval in map.

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

void goToEnd()

Description

goToEnd - Move beyond the last interval in map.

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

void pathFillFind(KeyT x)

Description

pathFillFind - Complete path by searching for x.

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

Parameters

KeyT x
Key to search for.

void setMap(
    const IntervalMap<KeyT, ValT, N, Traits>& m)

Description

setMap - Change the map iterated over. This call must be followed by a call to goToBegin(), goToEnd(), or find()

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

Parameters

const IntervalMap<KeyT, ValT, N, Traits>& m

void setRoot(unsigned int Offset)

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

Parameters

unsigned int Offset

const KeyT& start() const

Description

start - Return the beginning of the current interval.

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

const KeyT& stop() const

Description

stop - Return the end of the current interval.

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

void treeAdvanceTo(KeyT x)

Description

treeAdvanceTo - Find position after the current one.

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

Parameters

KeyT x
Key to search for.

void treeFind(KeyT x)

Description

treeFind - Find in a branched tree.

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

Parameters

KeyT x
Key to search for.

KeyT& unsafeStart() const

Description

unsafeStart - Writable access to start() for iterator.

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

KeyT& unsafeStop() const

Description

unsafeStop - Writable access to stop() for iterator.

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

ValT& unsafeValue() const

Description

unsafeValue - Writable access to value() for iterator.

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

bool valid() const

Description

valid - Return true if the current position is valid, false for end().

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

const ValT& value() const

Description

value - Return the mapped value at the current interval.

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