|
LLVM
10.0.0
|
#include "llvm/ADT/ImmutableSet.h"
Public Types | |
| using | value_type = typename ValInfo::value_type |
| using | value_type_ref = typename ValInfo::value_type_ref |
| using | TreeTy = ImutAVLTree< ValInfo > |
| using | FactoryTy = typename TreeTy::Factory |
| using | iterator = ImutAVLValueIterator< ImmutableSetRef > |
Public Member Functions | |
| ImmutableSetRef (TreeTy *R, FactoryTy *F) | |
| Constructs a set from a pointer to a tree root. More... | |
| ImmutableSetRef (const ImmutableSetRef &X) | |
| ~ImmutableSetRef () | |
| ImmutableSetRef & | operator= (const ImmutableSetRef &X) |
| 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 |
| isSingleton - Return true if the set contains exactly one element. More... | |
| 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 1109 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo >::FactoryTy = typename TreeTy::Factory |
Definition at line 1114 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo >::iterator = ImutAVLValueIterator<ImmutableSetRef> |
Definition at line 1196 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo >::TreeTy = ImutAVLTree<ValInfo> |
Definition at line 1113 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo >::value_type = typename ValInfo::value_type |
Definition at line 1111 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo >::value_type_ref = typename ValInfo::value_type_ref |
Definition at line 1112 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 1125 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 1131 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 1137 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::release().
|
inline |
Definition at line 1155 of file ImmutableSet.h.
|
inline |
Definition at line 1168 of file ImmutableSet.h.
|
inline |
Definition at line 1198 of file ImmutableSet.h.
|
inline |
Returns true if the set contains the specified value.
Definition at line 1164 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::contains().
|
inline |
Definition at line 1199 of file ImmutableSet.h.
|
inlinestatic |
Definition at line 1151 of file ImmutableSet.h.
|
inline |
Definition at line 1205 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight().
|
inline |
Definition at line 1173 of file ImmutableSet.h.
|
inline |
isEmpty - Return true if the set contains no elements.
Definition at line 1186 of file ImmutableSet.h.
|
inline |
isSingleton - Return true if the set contains exactly one element.
This method runs in constant time.
Definition at line 1190 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::getHeight().
|
inline |
Definition at line 1181 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::isNotEqual().
|
inline |
Definition at line 1141 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::release(), and llvm::ImutAVLTree< ImutInfo >::retain().
|
inline |
Definition at line 1177 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::isEqual().
|
inlinestatic |
Definition at line 1207 of file ImmutableSet.h.
References llvm::FoldingSetNodeID::AddPointer().
|
inline |
Definition at line 1211 of file ImmutableSet.h.
References llvm::ImmutableSetRef< ValT, ValInfo >::Profile().
Referenced by llvm::ImmutableSetRef< ValT, ValInfo >::Profile().
|
inline |
Definition at line 1159 of file ImmutableSet.h.
|
inline |
Definition at line 1217 of file ImmutableSet.h.
References llvm::ImutAVLTree< ImutInfo >::validateTree().
1.8.13