class indexed_accessor_iterator

Declaration

template <typename DerivedT,
          typename BaseT,
          typename T,
          typename PointerT = T*,
          typename ReferenceT = T&>
class indexed_accessor_iterator { /* full declaration omitted */ };

Description

A utility class used to implement an iterator that contains some base object and an index. The iterator moves the index but keeps the base constant.

Declared at: llvm/include/llvm/ADT/STLExtras.h:1096

Templates

DerivedT
BaseT
T
PointerT = T *
ReferenceT = T &

Member Variables

protected BaseT base
protected ptrdiff_t index

Method Overview

Methods

const BaseT& getBase() const

Description

Returns the current base of the iterator.

Declared at: llvm/include/llvm/ADT/STLExtras.h:1126

ptrdiff_t getIndex() const

Description

Returns the current index of the iterator.

Declared at: llvm/include/llvm/ADT/STLExtras.h:1123

indexed_accessor_iterator<DerivedT,
                          BaseT,
                          T,
                          PointerT,
                          ReferenceT>(
    BaseT base,
    ptrdiff_t index)

Declared at: llvm/include/llvm/ADT/STLExtras.h:1129

Parameters

BaseT base
ptrdiff_t index