LLVM API Documentation
#include <ImmutableSet.h>
Classes | |
class | iterator |
Public Types | |
typedef ValInfo::value_type | value_type |
typedef ValInfo::value_type_ref | value_type_ref |
typedef ImutAVLTree< ValInfo > | TreeTy |
typedef TreeTy::Factory | FactoryTy |
Public Member Functions | |
ImmutableSetRef (TreeTy *R, FactoryTy *F) | |
ImmutableSetRef (const ImmutableSetRef &X) | |
ImmutableSetRef & | operator= (const ImmutableSetRef &X) |
~ImmutableSetRef () | |
ImmutableSetRef | add (value_type_ref V) |
ImmutableSetRef | remove (value_type_ref V) |
bool | contains (value_type_ref V) const |
Returns true if the set contains the specified value. More... | |
ImmutableSet< ValT > | asImmutableSet (bool canonicalize=true) const |
TreeTy * | getRootWithoutRetain () const |
bool | operator== (const ImmutableSetRef &RHS) const |
bool | operator!= (const ImmutableSetRef &RHS) const |
bool | isEmpty () const |
isEmpty - Return true if the set contains no elements. More... | |
bool | isSingleton () const |
iterator | begin () const |
iterator | end () const |
unsigned | getHeight () const |
void | Profile (FoldingSetNodeID &ID) const |
void | validateTree () const |
Static Public Member Functions | |
static ImmutableSetRef | getEmptySet (FactoryTy *F) |
static void | Profile (FoldingSetNodeID &ID, const ImmutableSetRef &S) |
Definition at line 1119 of file ImmutableSet.h.
typedef TreeTy::Factory llvm::ImmutableSetRef< ValT, ValInfo >::FactoryTy |
Definition at line 1124 of file ImmutableSet.h.
typedef ImutAVLTree<ValInfo> llvm::ImmutableSetRef< ValT, ValInfo >::TreeTy |
Definition at line 1123 of file ImmutableSet.h.
typedef ValInfo::value_type llvm::ImmutableSetRef< ValT, ValInfo >::value_type |
Definition at line 1121 of file ImmutableSet.h.
typedef ValInfo::value_type_ref llvm::ImmutableSetRef< ValT, ValInfo >::value_type_ref |
Definition at line 1122 of file ImmutableSet.h.
|
inlineexplicit |
Constructs a set from a pointer to a tree root. In general one should use a Factory object to create sets instead of directly invoking the constructor, but there are cases where make this constructor public is useful.
Definition at line 1135 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
Referenced by llvm::ImmutableSetRef< ValT, ValInfo >::add(), llvm::ImmutableSetRef< ValT, ValInfo >::getEmptySet(), and llvm::ImmutableSetRef< ValT, ValInfo >::remove().
|
inline |
Definition at line 1140 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 1154 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::release().
|
inline |
Definition at line 1162 of file ImmutableSet.h.
References llvm::ImutAVLFactory< ImutInfo >::add(), and llvm::ImmutableSetRef< ValT, ValInfo >::ImmutableSetRef().
|
inline |
Definition at line 1175 of file ImmutableSet.h.
References llvm::ImutAVLFactory< ImutInfo >::getCanonicalTree().
|
inline |
Definition at line 1219 of file ImmutableSet.h.
|
inline |
Returns true if the set contains the specified value.
Definition at line 1171 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::contains().
|
inline |
Definition at line 1220 of file ImmutableSet.h.
|
inlinestatic |
Definition at line 1158 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::ImmutableSetRef().
|
inline |
Definition at line 1226 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight().
Referenced by llvm::ImmutableSetRef< ValT, ValInfo >::isSingleton().
|
inline |
Definition at line 1180 of file ImmutableSet.h.
|
inline |
isEmpty - Return true if the set contains no elements.
Definition at line 1193 of file ImmutableSet.h.
|
inline |
isSingleton - Return true if the set contains exactly one element. This method runs in constant time.
Definition at line 1197 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::getHeight().
|
inline |
Definition at line 1188 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::isNotEqual().
|
inline |
Definition at line 1145 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::release(), and llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 1184 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::isEqual().
|
inlinestatic |
Definition at line 1228 of file ImmutableSet.h.
References llvm::FoldingSetNodeID::AddPointer().
Referenced by llvm::ImmutableSetRef< ValT, ValInfo >::Profile().
|
inline |
Definition at line 1232 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::Profile().
|
inline |
Definition at line 1166 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::ImmutableSetRef(), and llvm::ImutAVLFactory< ImutInfo >::remove().
|
inline |
Definition at line 1240 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::validateTree().