class SmallPtrSetImpl
Declaration
template <typename PtrType>
class SmallPtrSetImpl : public SmallPtrSetImplBase { /* full declaration omitted */ };
Description
A templated base class for \c SmallPtrSet which provides the typesafe interface that is common across all small sizes. This is particularly useful for passing around between interface boundaries to avoid encoding a particular small size in the interface boundary.
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:343
Inherits from: SmallPtrSetImplBase
Templates
- PtrType
Member Variables
Inherited from SmallPtrSetImplBase:
- protected SmallArray
- protected CurArray
- protected CurArraySize
- protected NumNonEmpty
- protected NumTombstones
Method Overview
- protected SmallPtrSetImpl<PtrType>(const void ** SmallStorage, const SmallPtrSetImpl<PtrType> & that)
- protected SmallPtrSetImpl<PtrType>(const void ** SmallStorage, unsigned int SmallSize, SmallPtrSetImpl<PtrType> && that)
- protected SmallPtrSetImpl<PtrType>(const void ** SmallStorage, unsigned int SmallSize)
- public SmallPtrSetImpl<PtrType>(const SmallPtrSetImpl<PtrType> &)
- public llvm::SmallPtrSetImpl::iterator begin() const
- public llvm::SmallPtrSetImplBase::size_type count(llvm::SmallPtrSetImpl::ConstPtrType Ptr) const
- public llvm::SmallPtrSetImpl::iterator end() const
- public bool erase(PtrType Ptr)
- public llvm::SmallPtrSetImpl::iterator find(llvm::SmallPtrSetImpl::ConstPtrType Ptr) const
- public std::pair<iterator, bool> insert(PtrType Ptr)
- public void insert(std::initializer_list<PtrType> IL)
- public template <typename IterT>void insert(IterT I, IterT E)
Inherited from SmallPtrSetImplBase:
- protected CopyFrom
- protected EndPointer
- protected MoveFrom
- public clear
- public empty
- protected erase_imp
- protected find_imp
- protected getEmptyMarker
- protected getTombstoneMarker
- protected insert_imp
- public size
- protected swap
Inherited from DebugEpochBase:
Methods
¶SmallPtrSetImpl<PtrType>(
const void** SmallStorage,
const SmallPtrSetImpl<PtrType>& that)
SmallPtrSetImpl<PtrType>(
const void** SmallStorage,
const SmallPtrSetImpl<PtrType>& that)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:350
Parameters
- const void** SmallStorage
- const SmallPtrSetImpl<PtrType>& that
¶SmallPtrSetImpl<PtrType>(
const void** SmallStorage,
unsigned int SmallSize,
SmallPtrSetImpl<PtrType>&& that)
SmallPtrSetImpl<PtrType>(
const void** SmallStorage,
unsigned int SmallSize,
SmallPtrSetImpl<PtrType>&& that)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:352
Parameters
- const void** SmallStorage
- unsigned int SmallSize
- SmallPtrSetImpl<PtrType>&& that
¶SmallPtrSetImpl<PtrType>(
const void** SmallStorage,
unsigned int SmallSize)
SmallPtrSetImpl<PtrType>(
const void** SmallStorage,
unsigned int SmallSize)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:355
Parameters
- const void** SmallStorage
- unsigned int SmallSize
¶SmallPtrSetImpl<PtrType>(
const SmallPtrSetImpl<PtrType>&)
SmallPtrSetImpl<PtrType>(
const SmallPtrSetImpl<PtrType>&)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:364
Parameters
- const SmallPtrSetImpl<PtrType>&
¶llvm::SmallPtrSetImpl::iterator begin() const
llvm::SmallPtrSetImpl::iterator begin() const
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:396
¶llvm::SmallPtrSetImplBase::size_type count(
llvm::SmallPtrSetImpl::ConstPtrType Ptr) const
llvm::SmallPtrSetImplBase::size_type count(
llvm::SmallPtrSetImpl::ConstPtrType Ptr) const
Description
count - Return 1 if the specified pointer is in the set, 0 otherwise.
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:381
Parameters
- llvm::SmallPtrSetImpl::ConstPtrType Ptr
¶llvm::SmallPtrSetImpl::iterator end() const
llvm::SmallPtrSetImpl::iterator end() const
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:401
¶bool erase(PtrType Ptr)
bool erase(PtrType Ptr)
Description
erase - If the set contains the specified pointer, remove it and return true, otherwise return false.
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:377
Parameters
- PtrType Ptr
¶llvm::SmallPtrSetImpl::iterator find(
llvm::SmallPtrSetImpl::ConstPtrType Ptr) const
llvm::SmallPtrSetImpl::iterator find(
llvm::SmallPtrSetImpl::ConstPtrType Ptr) const
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:382
Parameters
- llvm::SmallPtrSetImpl::ConstPtrType Ptr
¶std::pair<iterator, bool> insert(PtrType Ptr)
std::pair<iterator, bool> insert(PtrType Ptr)
Description
Inserts Ptr if and only if there is no element in the container equal to Ptr. The bool component of the returned pair is true if and only if the insertion takes place, and the iterator component of the pair points to the element equal to Ptr.
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:370
Parameters
- PtrType Ptr
¶void insert(std::initializer_list<PtrType> IL)
void insert(std::initializer_list<PtrType> IL)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:392
Parameters
- std::initializer_list<PtrType> IL
¶template <typename IterT>
void insert(IterT I, IterT E)
template <typename IterT>
void insert(IterT I, IterT E)
Declared at: llvm/include/llvm/ADT/SmallPtrSet.h:387
Templates
- IterT
Parameters
- IterT I
- IterT E