LLVM API Documentation

Classes | Public Types | Public Member Functions
llvm::DenseSet< ValueT, ValueInfoT > Class Template Reference

#include <DenseSet.h>

Inheritance diagram for llvm::DenseSet< ValueT, ValueInfoT >:
Inheritance graph
[legend]

List of all members.

Classes

class  ConstIterator
class  Iterator

Public Types

typedef ValueT key_type
typedef ValueT value_type
typedef unsigned size_type
typedef Iterator iterator
typedef ConstIterator const_iterator

Public Member Functions

 DenseSet (unsigned NumInitBuckets=0)
bool empty () const
size_type size () const
size_t getMemorySize () const
void resize (size_t Size)
void clear ()
size_type count (const ValueT &V) const
 Return 1 if the specified key is in the set, 0 otherwise.
bool erase (const ValueT &V)
void swap (DenseSet &RHS)
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
iterator find (const ValueT &V)
void erase (Iterator I)
void erase (ConstIterator CI)
std::pair< iterator, boolinsert (const ValueT &V)
template<typename InputIt >
void insert (InputIt I, InputIt E)

Detailed Description

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
class llvm::DenseSet< ValueT, ValueInfoT >

DenseSet - This implements a dense probed hash-table based set.

FIXME: This is currently implemented directly in terms of DenseMap, this should be optimized later if there is a need.

Definition at line 26 of file DenseSet.h.


Member Typedef Documentation

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
typedef ConstIterator llvm::DenseSet< ValueT, ValueInfoT >::const_iterator

Definition at line 104 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
typedef Iterator llvm::DenseSet< ValueT, ValueInfoT >::iterator

Definition at line 103 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
typedef ValueT llvm::DenseSet< ValueT, ValueInfoT >::key_type

Definition at line 30 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
typedef unsigned llvm::DenseSet< ValueT, ValueInfoT >::size_type

Definition at line 32 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
typedef ValueT llvm::DenseSet< ValueT, ValueInfoT >::value_type

Definition at line 31 of file DenseSet.h.


Constructor & Destructor Documentation

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
llvm::DenseSet< ValueT, ValueInfoT >::DenseSet ( unsigned  NumInitBuckets = 0) [inline, explicit]

Definition at line 34 of file DenseSet.h.


Member Function Documentation

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
iterator llvm::DenseSet< ValueT, ValueInfoT >::begin ( ) [inline]

Definition at line 106 of file DenseSet.h.

Referenced by llvm::MachineConstantPool::~MachineConstantPool().

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
const_iterator llvm::DenseSet< ValueT, ValueInfoT >::begin ( ) const [inline]

Definition at line 109 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
void llvm::DenseSet< ValueT, ValueInfoT >::clear ( ) [inline]

Definition at line 44 of file DenseSet.h.

Referenced by llvm::TypeFinder::clear().

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
size_type llvm::DenseSet< ValueT, ValueInfoT >::count ( const ValueT &  V) const [inline]

Return 1 if the specified key is in the set, 0 otherwise.

Definition at line 49 of file DenseSet.h.

Referenced by readCoverageMappingData(), and llvm::LoopInfo::verifyAnalysis().

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
bool llvm::DenseSet< ValueT, ValueInfoT >::empty ( ) const [inline]

Definition at line 36 of file DenseSet.h.

Referenced by llvm::ScalarEvolution::releaseMemory().

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
iterator llvm::DenseSet< ValueT, ValueInfoT >::end ( ) [inline]

Definition at line 107 of file DenseSet.h.

Referenced by llvm::MachineConstantPool::~MachineConstantPool().

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
const_iterator llvm::DenseSet< ValueT, ValueInfoT >::end ( ) const [inline]

Definition at line 110 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
bool llvm::DenseSet< ValueT, ValueInfoT >::erase ( const ValueT &  V) [inline]

Definition at line 53 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
void llvm::DenseSet< ValueT, ValueInfoT >::erase ( Iterator  I) [inline]

Definition at line 113 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
void llvm::DenseSet< ValueT, ValueInfoT >::erase ( ConstIterator  CI) [inline]

Definition at line 114 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
iterator llvm::DenseSet< ValueT, ValueInfoT >::find ( const ValueT &  V) [inline]

Definition at line 112 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
size_t llvm::DenseSet< ValueT, ValueInfoT >::getMemorySize ( ) const [inline]

Definition at line 38 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
std::pair<iterator, bool> llvm::DenseSet< ValueT, ValueInfoT >::insert ( const ValueT &  V) [inline]
template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
template<typename InputIt >
void llvm::DenseSet< ValueT, ValueInfoT >::insert ( InputIt  I,
InputIt  E 
) [inline]

Definition at line 122 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
void llvm::DenseSet< ValueT, ValueInfoT >::resize ( size_t  Size) [inline]

Grow the DenseSet so that it has at least Size buckets. Will not shrink the Size of the set.

Definition at line 42 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
size_type llvm::DenseSet< ValueT, ValueInfoT >::size ( ) const [inline]

Definition at line 37 of file DenseSet.h.

template<typename ValueT, typename ValueInfoT = DenseMapInfo<ValueT>>
void llvm::DenseSet< ValueT, ValueInfoT >::swap ( DenseSet< ValueT, ValueInfoT > &  RHS) [inline]

Definition at line 57 of file DenseSet.h.


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