clang  6.0.0svn
Classes | Public Types | Public Member Functions | List of all members
clang::DeclContextLookupResult Class Reference

The results of name lookup within a DeclContext. More...

#include "clang/AST/DeclBase.h"


class  iterator

Public Types

using IteratorBase = llvm::iterator_adaptor_base< iterator, ResultTy::iterator, std::random_access_iterator_tag, NamedDecl *const >
using const_iterator = iterator
using pointer = iterator::pointer
using reference = iterator::reference

Public Member Functions

 DeclContextLookupResult ()=default
 DeclContextLookupResult (ArrayRef< NamedDecl *> Result)
 DeclContextLookupResult (NamedDecl *Single)
iterator begin () const
iterator end () const
bool empty () const
pointer data () const
size_t size () const
reference front () const
reference back () const
reference operator[] (size_t N) const
DeclContextLookupResult slice (size_t N) const

Detailed Description

The results of name lookup within a DeclContext.

This is either a single result (with no stable storage) or a collection of results (with stable storage provided by the lookup table).

Definition at line 1178 of file DeclBase.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 1216 of file DeclBase.h.

◆ IteratorBase

using clang::DeclContextLookupResult::IteratorBase = llvm::iterator_adaptor_base<iterator, ResultTy::iterator, std::random_access_iterator_tag, NamedDecl *const>

Definition at line 1201 of file DeclBase.h.

◆ pointer

using clang::DeclContextLookupResult::pointer = iterator::pointer

Definition at line 1217 of file DeclBase.h.

◆ reference

using clang::DeclContextLookupResult::reference = iterator::reference

Definition at line 1218 of file DeclBase.h.

Constructor & Destructor Documentation

◆ DeclContextLookupResult() [1/3]

clang::DeclContextLookupResult::DeclContextLookupResult ( )

◆ DeclContextLookupResult() [2/3]

clang::DeclContextLookupResult::DeclContextLookupResult ( ArrayRef< NamedDecl *>  Result)

Definition at line 1191 of file DeclBase.h.

◆ DeclContextLookupResult() [3/3]

clang::DeclContextLookupResult::DeclContextLookupResult ( NamedDecl Single)

Definition at line 1193 of file DeclBase.h.

Member Function Documentation

◆ back()

reference clang::DeclContextLookupResult::back ( ) const

Definition at line 1227 of file DeclBase.h.

◆ begin()

iterator clang::DeclContextLookupResult::begin ( ) const

◆ data()

pointer clang::DeclContextLookupResult::data ( ) const

Definition at line 1224 of file DeclBase.h.

◆ empty()

bool clang::DeclContextLookupResult::empty ( ) const

◆ end()

iterator clang::DeclContextLookupResult::end ( ) const

◆ front()

reference clang::DeclContextLookupResult::front ( ) const

◆ operator[]()

reference clang::DeclContextLookupResult::operator[] ( size_t  N) const

Definition at line 1228 of file DeclBase.h.

◆ size()

size_t clang::DeclContextLookupResult::size ( ) const

Definition at line 1225 of file DeclBase.h.

Referenced by ClassImplementsAllMethodsAndProperties().

◆ slice()

DeclContextLookupResult clang::DeclContextLookupResult::slice ( size_t  N) const

Definition at line 1231 of file DeclBase.h.

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