clang
3.9.0
|
Iterates over a filtered subrange of declarations stored in a DeclContext. More...
#include <DeclBase.h>
Public Types | |
typedef SpecificDecl * | value_type |
typedef void | reference |
typedef void | pointer |
typedef std::iterator_traits < DeclContext::decl_iterator > ::difference_type | difference_type |
typedef std::forward_iterator_tag | iterator_category |
Public Member Functions | |
filtered_decl_iterator () | |
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). More... | |
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 1548 of file DeclBase.h.
typedef std::iterator_traits<DeclContext::decl_iterator>::difference_type clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::difference_type |
Definition at line 1571 of file DeclBase.h.
typedef std::forward_iterator_tag clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::iterator_category |
Definition at line 1572 of file DeclBase.h.
typedef void clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::pointer |
Definition at line 1569 of file DeclBase.h.
typedef void clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::reference |
Definition at line 1568 of file DeclBase.h.
typedef SpecificDecl* clang::DeclContext::filtered_decl_iterator< SpecificDecl, Acceptable >::value_type |
Definition at line 1565 of file DeclBase.h.
|
inline |
Definition at line 1574 of file DeclBase.h.
|
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 1584 of file DeclBase.h.
|
inline |
Definition at line 1588 of file DeclBase.h.
|
inline |
Definition at line 1591 of file DeclBase.h.
|
inline |
Definition at line 1597 of file DeclBase.h.
|
inline |
Definition at line 1589 of file DeclBase.h.
|
friend |
Definition at line 1608 of file DeclBase.h.
|
friend |
Definition at line 1603 of file DeclBase.h.