LLVM API Documentation

Public Member Functions
llvm::SmallPtrSet< PtrType, SmallSize > Class Template Reference

#include <SmallPtrSet.h>

Inheritance diagram for llvm::SmallPtrSet< PtrType, SmallSize >:
Inheritance graph
[legend]
Collaboration diagram for llvm::SmallPtrSet< PtrType, SmallSize >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SmallPtrSet ()
 SmallPtrSet (const SmallPtrSet &that)
 SmallPtrSet (SmallPtrSet &&that)
template<typename It >
 SmallPtrSet (It I, It E)
SmallPtrSet< PtrType, SmallSize > & operator= (const SmallPtrSet< PtrType, SmallSize > &RHS)
SmallPtrSet< PtrType, SmallSize > & operator= (SmallPtrSet< PtrType, SmallSize > &&RHS)
void swap (SmallPtrSet< PtrType, SmallSize > &RHS)
 swap - Swaps the elements of two sets.

Detailed Description

template<class PtrType, unsigned SmallSize>
class llvm::SmallPtrSet< PtrType, SmallSize >

SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements. This internally rounds up SmallSize to the next power of two if it is not already a power of two. See the comments above SmallPtrSetImplBase for details of the algorithm.

Definition at line 297 of file SmallPtrSet.h.


Constructor & Destructor Documentation

template<class PtrType, unsigned SmallSize>
llvm::SmallPtrSet< PtrType, SmallSize >::SmallPtrSet ( ) [inline]

Definition at line 305 of file SmallPtrSet.h.

template<class PtrType, unsigned SmallSize>
llvm::SmallPtrSet< PtrType, SmallSize >::SmallPtrSet ( const SmallPtrSet< PtrType, SmallSize > &  that) [inline]

Definition at line 306 of file SmallPtrSet.h.

template<class PtrType, unsigned SmallSize>
llvm::SmallPtrSet< PtrType, SmallSize >::SmallPtrSet ( SmallPtrSet< PtrType, SmallSize > &&  that) [inline]

Definition at line 307 of file SmallPtrSet.h.

template<class PtrType, unsigned SmallSize>
template<typename It >
llvm::SmallPtrSet< PtrType, SmallSize >::SmallPtrSet ( It  I,
It  E 
) [inline]

Definition at line 311 of file SmallPtrSet.h.


Member Function Documentation

template<class PtrType, unsigned SmallSize>
SmallPtrSet<PtrType, SmallSize>& llvm::SmallPtrSet< PtrType, SmallSize >::operator= ( const SmallPtrSet< PtrType, SmallSize > &  RHS) [inline]

Definition at line 316 of file SmallPtrSet.h.

template<class PtrType, unsigned SmallSize>
SmallPtrSet<PtrType, SmallSize>& llvm::SmallPtrSet< PtrType, SmallSize >::operator= ( SmallPtrSet< PtrType, SmallSize > &&  RHS) [inline]

Definition at line 323 of file SmallPtrSet.h.

template<class PtrType, unsigned SmallSize>
void llvm::SmallPtrSet< PtrType, SmallSize >::swap ( SmallPtrSet< PtrType, SmallSize > &  RHS) [inline]

swap - Swaps the elements of two sets.

Definition at line 330 of file SmallPtrSet.h.

Referenced by llvm::SmallPtrSet< const MDNode *, 16 >::swap(), and std::swap().


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