clang API Documentation

Public Member Functions | Friends
clang::ConstStmtRange Struct Reference

#include <StmtIterator.h>

Inheritance diagram for clang::ConstStmtRange:
Inheritance graph
[legend]
Collaboration diagram for clang::ConstStmtRange:
Collaboration graph
[legend]

List of all members.

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 Stmtoperator-> () const
const Stmtoperator* () const
ConstStmtRangeoperator++ ()
ConstStmtRange operator++ (int)

Friends

const ConstStmtIteratorbegin (const ConstStmtRange &range)
const ConstStmtIteratorend (const ConstStmtRange &range)

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Friends And Related Function Documentation

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.


The documentation for this struct was generated from the following file: