clang API Documentation
#include <StmtIterator.h>
Public Member Functions | |
ConstStmtRange () | |
ConstStmtRange (const ConstStmtIterator &begin, const ConstStmtIterator &end) | |
ConstStmtRange (const StmtRange &range) | |
ConstStmtRange (const StmtIterator &begin, const StmtIterator &end) | |
bool | empty () const |
LLVM_EXPLICIT | operator bool () const |
const Stmt * | operator-> () const |
const Stmt * | operator* () const |
ConstStmtRange & | operator++ () |
ConstStmtRange | operator++ (int) |
Friends | |
const ConstStmtIterator & | begin (const ConstStmtRange &range) |
const ConstStmtIterator & | end (const ConstStmtRange &range) |
A range of const statement iterators.
This class provides some extra functionality beyond std::pair in order to allow the following idiom: for (ConstStmtRange range = stmt->children(); range; ++range)
Definition at line 182 of file StmtIterator.h.
clang::ConstStmtRange::ConstStmtRange | ( | ) | [inline] |
Definition at line 183 of file StmtIterator.h.
clang::ConstStmtRange::ConstStmtRange | ( | const ConstStmtIterator & | begin, |
const ConstStmtIterator & | end | ||
) | [inline] |
Definition at line 184 of file StmtIterator.h.
clang::ConstStmtRange::ConstStmtRange | ( | const StmtRange & | range | ) | [inline] |
Definition at line 187 of file StmtIterator.h.
clang::ConstStmtRange::ConstStmtRange | ( | const StmtIterator & | begin, |
const StmtIterator & | end | ||
) | [inline] |
Definition at line 190 of file StmtIterator.h.
bool clang::ConstStmtRange::empty | ( | ) | const [inline] |
Definition at line 193 of file StmtIterator.h.
Referenced by operator bool(), and operator++().
LLVM_EXPLICIT clang::ConstStmtRange::operator bool | ( | ) | const [inline] |
Definition at line 194 of file StmtIterator.h.
References empty().
const Stmt* clang::ConstStmtRange::operator* | ( | ) | const [inline] |
Definition at line 197 of file StmtIterator.h.
ConstStmtRange& clang::ConstStmtRange::operator++ | ( | ) | [inline] |
Definition at line 199 of file StmtIterator.h.
References empty().
ConstStmtRange clang::ConstStmtRange::operator++ | ( | int | ) | [inline] |
Definition at line 205 of file StmtIterator.h.
References empty().
const Stmt* clang::ConstStmtRange::operator-> | ( | ) | const [inline] |
Definition at line 196 of file StmtIterator.h.
const ConstStmtIterator& begin | ( | const ConstStmtRange & | range | ) | [friend] |
Definition at line 212 of file StmtIterator.h.
const ConstStmtIterator& end | ( | const ConstStmtRange & | range | ) | [friend] |
Definition at line 215 of file StmtIterator.h.