clang API Documentation

Public Member Functions | Friends
clang::StmtRange Struct Reference

#include <StmtIterator.h>

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

List of all members.

Public Member Functions

 StmtRange ()
 StmtRange (const StmtIterator &begin, const StmtIterator &end)
bool empty () const
LLVM_EXPLICIT operator bool () const
Stmtoperator-> () const
Stmt *& operator* () const
StmtRangeoperator++ ()
StmtRange operator++ (int)

Friends

const StmtIteratorbegin (const StmtRange &range)
const StmtIteratorend (const StmtRange &range)

Detailed Description

A range of statement iterators.

This class provides some extra functionality beyond std::pair in order to allow the following idiom: for (StmtRange range = stmt->children(); range; ++range)

Definition at line 145 of file StmtIterator.h.


Constructor & Destructor Documentation

Definition at line 146 of file StmtIterator.h.

clang::StmtRange::StmtRange ( const StmtIterator begin,
const StmtIterator end 
) [inline]

Definition at line 147 of file StmtIterator.h.


Member Function Documentation

bool clang::StmtRange::empty ( ) const [inline]

Definition at line 150 of file StmtIterator.h.

Referenced by operator bool(), and operator++().

LLVM_EXPLICIT clang::StmtRange::operator bool ( ) const [inline]

Definition at line 151 of file StmtIterator.h.

References empty().

Stmt*& clang::StmtRange::operator* ( ) const [inline]

Definition at line 154 of file StmtIterator.h.

StmtRange& clang::StmtRange::operator++ ( ) [inline]

Definition at line 156 of file StmtIterator.h.

References empty().

StmtRange clang::StmtRange::operator++ ( int  ) [inline]

Definition at line 162 of file StmtIterator.h.

References empty().

Stmt* clang::StmtRange::operator-> ( ) const [inline]

Definition at line 153 of file StmtIterator.h.


Friends And Related Function Documentation

const StmtIterator& begin ( const StmtRange range) [friend]

Definition at line 169 of file StmtIterator.h.

const StmtIterator& end ( const StmtRange range) [friend]

Definition at line 172 of file StmtIterator.h.


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