LLVM API Documentation
#include <FoldingSet.h>
Public Types | |
typedef FoldingSetVectorIterator< T, typename VectorT::iterator > | iterator |
typedef FoldingSetVectorIterator < const T, typename VectorT::const_iterator > | const_iterator |
Public Member Functions | |
FoldingSetVector (unsigned Log2InitSize=6) | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
void | clear () |
clear - Remove all nodes from the folding set. | |
T * | FindNodeOrInsertPos (const FoldingSetNodeID &ID, void *&InsertPos) |
T * | GetOrInsertNode (T *N) |
void | InsertNode (T *N, void *InsertPos) |
void | InsertNode (T *N) |
unsigned | size () const |
size - Returns the number of nodes in the folding set. | |
bool | empty () const |
empty - Returns true if there are no nodes in the folding set. |
FoldingSetVector - This template class combines a FoldingSet and a vector to provide the interface of FoldingSet but with deterministic iteration order based on the insertion order. T must be a subclass of FoldingSetNode and implement a Profile function.
Definition at line 580 of file FoldingSet.h.
typedef FoldingSetVectorIterator<const T, typename VectorT::const_iterator> llvm::FoldingSetVector< T, VectorT >::const_iterator |
Definition at line 594 of file FoldingSet.h.
typedef FoldingSetVectorIterator<T, typename VectorT::iterator> llvm::FoldingSetVector< T, VectorT >::iterator |
Definition at line 589 of file FoldingSet.h.
llvm::FoldingSetVector< T, VectorT >::FoldingSetVector | ( | unsigned | Log2InitSize = 6 | ) | [inline, explicit] |
Definition at line 585 of file FoldingSet.h.
iterator llvm::FoldingSetVector< T, VectorT >::begin | ( | ) | [inline] |
Definition at line 590 of file FoldingSet.h.
const_iterator llvm::FoldingSetVector< T, VectorT >::begin | ( | ) | const [inline] |
Definition at line 595 of file FoldingSet.h.
void llvm::FoldingSetVector< T, VectorT >::clear | ( | ) | [inline] |
clear - Remove all nodes from the folding set.
Definition at line 599 of file FoldingSet.h.
bool llvm::FoldingSetVector< T, VectorT >::empty | ( | ) | const [inline] |
empty - Returns true if there are no nodes in the folding set.
Definition at line 636 of file FoldingSet.h.
iterator llvm::FoldingSetVector< T, VectorT >::end | ( | ) | [inline] |
Definition at line 591 of file FoldingSet.h.
const_iterator llvm::FoldingSetVector< T, VectorT >::end | ( | ) | const [inline] |
Definition at line 596 of file FoldingSet.h.
T* llvm::FoldingSetVector< T, VectorT >::FindNodeOrInsertPos | ( | const FoldingSetNodeID & | ID, |
void *& | InsertPos | ||
) | [inline] |
FindNodeOrInsertPos - Look up the node specified by ID. If it exists, return it. If not, return the insertion token that will make insertion faster.
Definition at line 604 of file FoldingSet.h.
T* llvm::FoldingSetVector< T, VectorT >::GetOrInsertNode | ( | T * | N | ) | [inline] |
GetOrInsertNode - If there is an existing simple Node exactly equal to the specified node, return it. Otherwise, insert 'N' and return it instead.
Definition at line 611 of file FoldingSet.h.
void llvm::FoldingSetVector< T, VectorT >::InsertNode | ( | T * | N, |
void * | InsertPos | ||
) | [inline] |
InsertNode - Insert the specified node into the folding set, knowing that it is not already in the folding set. InsertPos must be obtained from FindNodeOrInsertPos.
Definition at line 620 of file FoldingSet.h.
void llvm::FoldingSetVector< T, VectorT >::InsertNode | ( | T * | N | ) | [inline] |
InsertNode - Insert the specified node into the folding set, knowing that it is not already in the folding set.
Definition at line 627 of file FoldingSet.h.
unsigned llvm::FoldingSetVector< T, VectorT >::size | ( | ) | const [inline] |
size - Returns the number of nodes in the folding set.
Definition at line 633 of file FoldingSet.h.