class DeclContext::specific_decl_iterator
Declaration
template <typename SpecificDecl>
class DeclContext::specific_decl_iterator { /* full declaration omitted */ };
Description
specific_decl_iterator - Iterates over a subrange of declarations stored in a DeclContext, providing only those that are of type SpecificDecl (or a class derived from it). This iterator is used, for example, to provide iteration over just the fields within a RecordDecl (with SpecificDecl = FieldDecl).
Declared at: clang/include/clang/AST/DeclBase.h:2179
Templates
- SpecificDecl
Member Variables
- private DeclContext::decl_iterator Current
- Current - The current, underlying declaration iterator, which will either be NULL or will point to a declaration of type SpecificDecl.
Method Overview
- private void SkipToNextDecl()
- public specific_decl_iterator<SpecificDecl>()
- public specific_decl_iterator<SpecificDecl>(DeclContext::decl_iterator C)
Methods
¶void SkipToNextDecl()
void SkipToNextDecl()
Description
SkipToNextDecl - Advances the current position up to the next declaration of type SpecificDecl that also meets the criteria required by Acceptable.
Declared at: clang/include/clang/AST/DeclBase.h:2188
¶specific_decl_iterator<SpecificDecl>()
specific_decl_iterator<SpecificDecl>()
Declared at: clang/include/clang/AST/DeclBase.h:2203
¶specific_decl_iterator<SpecificDecl>(
DeclContext::decl_iterator C)
specific_decl_iterator<SpecificDecl>(
DeclContext::decl_iterator C)
Description
specific_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.
Declared at: clang/include/clang/AST/DeclBase.h:2213