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

An UnresolvedSet-like class which uses the ASTContext's allocator. More...

#include "clang/AST/ASTUnresolvedSet.h"

Public Types

typedef UnresolvedSetIterator iterator
 
typedef UnresolvedSetIterator const_iterator
 

Public Member Functions

 ASTUnresolvedSet ()
 
 ASTUnresolvedSet (ASTContext &C, unsigned N)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
void addDecl (ASTContext &C, NamedDecl *D, AccessSpecifier AS)
 
bool replace (const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS)
 Replaces the given declaration with the new one, once. More...
 
void erase (unsigned I)
 
void clear ()
 
bool empty () const
 
unsigned size () const
 
void reserve (ASTContext &C, unsigned N)
 
void append (ASTContext &C, iterator I, iterator E)
 
DeclAccessPairoperator[] (unsigned I)
 
const DeclAccessPairoperator[] (unsigned I) const
 

Friends

class LazyASTUnresolvedSet
 

Detailed Description

An UnresolvedSet-like class which uses the ASTContext's allocator.

Definition at line 24 of file ASTUnresolvedSet.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 42 of file ASTUnresolvedSet.h.

◆ iterator

Definition at line 41 of file ASTUnresolvedSet.h.

Constructor & Destructor Documentation

◆ ASTUnresolvedSet() [1/2]

clang::ASTUnresolvedSet::ASTUnresolvedSet ( )
inline

Definition at line 38 of file ASTUnresolvedSet.h.

◆ ASTUnresolvedSet() [2/2]

clang::ASTUnresolvedSet::ASTUnresolvedSet ( ASTContext C,
unsigned  N 
)
inline

Definition at line 39 of file ASTUnresolvedSet.h.

Member Function Documentation

◆ addDecl()

void clang::ASTUnresolvedSet::addDecl ( ASTContext C,
NamedDecl D,
AccessSpecifier  AS 
)
inline

◆ append()

void clang::ASTUnresolvedSet::append ( ASTContext C,
iterator  I,
iterator  E 
)
inline

Definition at line 78 of file ASTUnresolvedSet.h.

◆ begin() [1/2]

iterator clang::ASTUnresolvedSet::begin ( )
inline

◆ begin() [2/2]

const_iterator clang::ASTUnresolvedSet::begin ( ) const
inline

Definition at line 47 of file ASTUnresolvedSet.h.

◆ clear()

void clang::ASTUnresolvedSet::clear ( )
inline

Definition at line 69 of file ASTUnresolvedSet.h.

◆ empty()

bool clang::ASTUnresolvedSet::empty ( ) const
inline

Definition at line 71 of file ASTUnresolvedSet.h.

Referenced by clang::LazyASTUnresolvedSet::addLazyDecl().

◆ end() [1/2]

iterator clang::ASTUnresolvedSet::end ( )
inline

◆ end() [2/2]

const_iterator clang::ASTUnresolvedSet::end ( ) const
inline

Definition at line 48 of file ASTUnresolvedSet.h.

◆ erase()

void clang::ASTUnresolvedSet::erase ( unsigned  I)
inline

Definition at line 67 of file ASTUnresolvedSet.h.

◆ operator[]() [1/2]

DeclAccessPair& clang::ASTUnresolvedSet::operator[] ( unsigned  I)
inline

Definition at line 82 of file ASTUnresolvedSet.h.

◆ operator[]() [2/2]

const DeclAccessPair& clang::ASTUnresolvedSet::operator[] ( unsigned  I) const
inline

Definition at line 83 of file ASTUnresolvedSet.h.

◆ replace()

bool clang::ASTUnresolvedSet::replace ( const NamedDecl Old,
NamedDecl New,
AccessSpecifier  AS 
)
inline

Replaces the given declaration with the new one, once.

Returns
true if the set changed

Definition at line 57 of file ASTUnresolvedSet.h.

◆ reserve()

void clang::ASTUnresolvedSet::reserve ( ASTContext C,
unsigned  N 
)
inline

Definition at line 74 of file ASTUnresolvedSet.h.

Referenced by clang::LazyASTUnresolvedSet::reserve().

◆ size()

unsigned clang::ASTUnresolvedSet::size ( ) const
inline

Definition at line 72 of file ASTUnresolvedSet.h.

Referenced by clang::ASTRecordWriter::AddUnresolvedSet().

Friends And Related Function Documentation

◆ LazyASTUnresolvedSet

friend class LazyASTUnresolvedSet
friend

Definition at line 35 of file ASTUnresolvedSet.h.


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