clang  3.7.0
Public Member Functions | Friends | List of all members
clang::StmtRange Struct Reference

#include <StmtIterator.h>

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

Public Member Functions

 StmtRange ()
 
 StmtRange (const StmtIterator &begin, const StmtIterator &end)
 
bool empty () const
 
 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 147 of file StmtIterator.h.

Constructor & Destructor Documentation

clang::StmtRange::StmtRange ( )
inline

Definition at line 148 of file StmtIterator.h.

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

Definition at line 149 of file StmtIterator.h.

Member Function Documentation

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

Definition at line 152 of file StmtIterator.h.

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

clang::StmtRange::operator bool ( ) const
inlineexplicit

Definition at line 153 of file StmtIterator.h.

References empty().

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

Definition at line 156 of file StmtIterator.h.

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

Definition at line 158 of file StmtIterator.h.

References empty().

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

Definition at line 164 of file StmtIterator.h.

References empty().

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

Definition at line 155 of file StmtIterator.h.

Friends And Related Function Documentation

const StmtIterator& begin ( const StmtRange range)
friend

Definition at line 171 of file StmtIterator.h.

const StmtIterator& end ( const StmtRange range)
friend

Definition at line 174 of file StmtIterator.h.


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