clang 20.0.0git
|
Iterates over a filtered subrange of declarations stored in a DeclContext. More...
#include "clang/AST/DeclBase.h"
Public Types | |
using | value_type = SpecificDecl * |
using | reference = void |
using | pointer = void |
using | difference_type = std::iterator_traits< DeclContext::decl_iterator >::difference_type |
using | iterator_category = std::forward_iterator_tag |
Public Member Functions | |
filtered_decl_iterator ()=default | |
filtered_decl_iterator (DeclContext::decl_iterator C) | |
filtered_decl_iterator - Construct a new iterator over a subset of the declarations the range [C, end-of-declarations). | |
value_type | operator* () const |
value_type | operator-> () const |
filtered_decl_iterator & | operator++ () |
filtered_decl_iterator | operator++ (int) |
Friends | |
bool | operator== (const filtered_decl_iterator &x, const filtered_decl_iterator &y) |
bool | operator!= (const filtered_decl_iterator &x, const filtered_decl_iterator &y) |
Iterates over a filtered subrange of declarations stored in a DeclContext.
This iterator visits only those declarations that are of type SpecificDecl (or a class derived from it) and that meet some additional run-time criteria. This iterator is used, for example, to provide access to the instance methods within an Objective-C interface (with SpecificDecl = ObjCMethodDecl and Acceptable = ObjCMethodDecl::isInstanceMethod).
Definition at line 2446 of file DeclBase.h.
using clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::difference_type = std::iterator_traits<DeclContext::decl_iterator>::difference_type |
Definition at line 2468 of file DeclBase.h.
using clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::iterator_category = std::forward_iterator_tag |
Definition at line 2470 of file DeclBase.h.
using clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::pointer = void |
Definition at line 2467 of file DeclBase.h.
using clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::reference = void |
Definition at line 2466 of file DeclBase.h.
using clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::value_type = SpecificDecl * |
Definition at line 2463 of file DeclBase.h.
|
default |
|
inlineexplicit |
filtered_decl_iterator - Construct a new iterator over a subset of the declarations the range [C, end-of-declarations).
If A is non-NULL, it is a pointer to a member function of SpecificDecl that should return true for all of the SpecificDecl instances that will be in the subset of iterators. For example, if you want Objective-C instance methods, SpecificDecl will be ObjCMethodDecl and A will be &ObjCMethodDecl::isInstanceMethod.
Definition at line 2482 of file DeclBase.h.
|
inline |
Definition at line 2486 of file DeclBase.h.
|
inline |
Definition at line 2489 of file DeclBase.h.
|
inline |
Definition at line 2495 of file DeclBase.h.
|
inline |
Definition at line 2487 of file DeclBase.h.
|
friend |
Definition at line 2506 of file DeclBase.h.
|
friend |
Definition at line 2501 of file DeclBase.h.