GCC Middle and Back End API Reference
tsi_range Class Reference

#include <tree-iterator.h>

Public Member Functions

 tsi_range (tree t)
 
tree_stmt_iterator begin () const
 
tree_stmt_iterator end () const
 

Private Attributes

tree t
 

Detailed Description

Make tree_stmt_iterator work as a C++ range, e.g.
for (tree stmt : tsi_range (stmt_list)) { ... }   

Constructor & Destructor Documentation

◆ tsi_range()

tsi_range::tsi_range ( tree t)
inline

Member Function Documentation

◆ begin()

tree_stmt_iterator tsi_range::begin ( ) const
inline

References t, and tsi_start().

◆ end()

tree_stmt_iterator tsi_range::end ( ) const
inline

References t.

Field Documentation

◆ t

tree tsi_range::t
private

Referenced by begin(), and end().


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