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 294 of file SmallPtrSet.h.


Constructor & Destructor Documentation

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

Definition at line 302 of file SmallPtrSet.h.

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

Definition at line 303 of file SmallPtrSet.h.

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

Definition at line 304 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 308 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 313 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 320 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 327 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: