clang 20.0.0git
Public Types | Public Member Functions | List of all members
clang::Stmt::CastIterator< T, TPtr, StmtPtr > Struct Template Reference

Iterator for iterating over Stmt * arrays that contain only T *. More...

#include "clang/AST/Stmt.h"

Inheritance diagram for clang::Stmt::CastIterator< T, TPtr, StmtPtr >:
Inheritance graph
[legend]

Public Types

using Base = typename CastIterator::iterator_adaptor_base
 

Public Member Functions

 CastIterator ()
 
 CastIterator (StmtPtr *I)
 
Base::value_type operator* () const
 

Detailed Description

template<typename T, typename TPtr = T *, typename StmtPtr = Stmt *>
struct clang::Stmt::CastIterator< T, TPtr, StmtPtr >

Iterator for iterating over Stmt * arrays that contain only T *.

This is needed because AST nodes use Stmt* arrays to store references to children (to be compatible with StmtIterator).

Definition at line 1319 of file Stmt.h.

Member Typedef Documentation

◆ Base

template<typename T , typename TPtr = T *, typename StmtPtr = Stmt *>
using clang::Stmt::CastIterator< T, TPtr, StmtPtr >::Base = typename CastIterator::iterator_adaptor_base

Definition at line 1322 of file Stmt.h.

Constructor & Destructor Documentation

◆ CastIterator() [1/2]

template<typename T , typename TPtr = T *, typename StmtPtr = Stmt *>
clang::Stmt::CastIterator< T, TPtr, StmtPtr >::CastIterator ( )
inline

Definition at line 1324 of file Stmt.h.

◆ CastIterator() [2/2]

template<typename T , typename TPtr = T *, typename StmtPtr = Stmt *>
clang::Stmt::CastIterator< T, TPtr, StmtPtr >::CastIterator ( StmtPtr *  I)
inline

Definition at line 1325 of file Stmt.h.

Member Function Documentation

◆ operator*()

template<typename T , typename TPtr = T *, typename StmtPtr = Stmt *>
Base::value_type clang::Stmt::CastIterator< T, TPtr, StmtPtr >::operator* ( ) const
inline

Definition at line 1327 of file Stmt.h.


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