class CFGBlock::ElementRefImpl

Declaration

template <bool IsConst>
class CFGBlock::ElementRefImpl { /* full declaration omitted */ };

Description

A convenience class for comparing CFGElements, since methods of CFGBlock like operator[] return CFGElements by value. This is practically a wrapper around a (CFGBlock, Index) pair.

Declared at: clang/include/clang/Analysis/CFG.h:623

Templates

bool IsConst

Member Variables

protected clang::CFGBlock::ElementRefImpl::CFGBlockPtr Parent
protected size_t Index

Method Overview

Methods

ElementRefImpl<IsConst>(
    clang::CFGBlock::ElementRefImpl::CFGBlockPtr
        Parent,
    size_t Index)

Declared at: clang/include/clang/Analysis/CFG.h:638

Parameters

clang::CFGBlock::ElementRefImpl::CFGBlockPtr Parent
size_t Index

template <bool IsOtherConst>
ElementRefImpl<IsConst>(
    ElementRefImpl<IsOtherConst> Other)

Declared at: clang/include/clang/Analysis/CFG.h:642

Templates

bool IsOtherConst

Parameters

ElementRefImpl<IsOtherConst> Other

void dump() const

Declared at: clang/include/clang/Analysis/CFG.h:668

void dumpToStream(llvm::raw_ostream& OS) const

Declared at: clang/include/clang/Analysis/CFG.h:663

Parameters

llvm::raw_ostream& OS

size_t getIndexInBlock() const

Declared at: clang/include/clang/Analysis/CFG.h:645

clang::CFGBlock::ElementRefImpl::CFGBlockPtr
getParent()

Declared at: clang/include/clang/Analysis/CFG.h:647

clang::CFGBlock::ElementRefImpl::CFGBlockPtr
getParent() const

Declared at: clang/include/clang/Analysis/CFG.h:648