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
- public ElementRefImpl<IsConst>(clang::CFGBlock::ElementRefImpl::CFGBlockPtr Parent, size_t Index)
- public template <bool IsOtherConst> ElementRefImpl<IsConst>(ElementRefImpl<IsOtherConst> Other)
- public void dump() const
- public void dumpToStream(llvm::raw_ostream & OS) const
- public size_t getIndexInBlock() const
- public clang::CFGBlock::ElementRefImpl::CFGBlockPtr getParent()
- public clang::CFGBlock::ElementRefImpl::CFGBlockPtr getParent() const
Methods
¶ElementRefImpl<IsConst>(
clang::CFGBlock::ElementRefImpl::CFGBlockPtr
Parent,
size_t Index)
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)
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
void dump() const
Declared at: clang/include/clang/Analysis/CFG.h:668
¶void dumpToStream(llvm::raw_ostream& OS) const
void dumpToStream(llvm::raw_ostream& OS) const
Declared at: clang/include/clang/Analysis/CFG.h:663
Parameters
¶size_t getIndexInBlock() const
size_t getIndexInBlock() const
Declared at: clang/include/clang/Analysis/CFG.h:645
¶clang::CFGBlock::ElementRefImpl::CFGBlockPtr
getParent()
clang::CFGBlock::ElementRefImpl::CFGBlockPtr
getParent()
Declared at: clang/include/clang/Analysis/CFG.h:647
¶clang::CFGBlock::ElementRefImpl::CFGBlockPtr
getParent() const
clang::CFGBlock::ElementRefImpl::CFGBlockPtr
getParent() const
Declared at: clang/include/clang/Analysis/CFG.h:648