|
LLVM 24.0.0git
|
#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, Canonicalize> |
| 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. | |
| 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. | |
| ImmutableSet< ValT, ValInfo, Canonicalize > | asImmutableSet () const |
| TreeTy * | getRootWithoutRetain () const |
| bool | operator== (const ImmutableSetRef &RHS) const |
| bool | operator!= (const ImmutableSetRef &RHS) const |
| bool | isEmpty () const |
| Return true if the set contains no elements. | |
| bool | isSingleton () const |
| Return true if the set contains exactly one element. | |
| 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 1253 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo, Canonicalize >::FactoryTy = typename TreeTy::Factory |
Definition at line 1258 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo, Canonicalize >::iterator = ImutAVLValueIterator<ImmutableSetRef> |
Definition at line 1318 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo, Canonicalize >::TreeTy = ImutAVLTree<ValInfo, Canonicalize> |
Definition at line 1257 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo, Canonicalize >::value_type = typename ValInfo::value_type |
Definition at line 1255 of file ImmutableSet.h.
| using llvm::ImmutableSetRef< ValT, ValInfo, Canonicalize >::value_type_ref = typename ValInfo::value_type_ref |
Definition at line 1256 of file ImmutableSet.h.
|
inline |
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 1269 of file ImmutableSet.h.
References F.
Referenced by add(), getEmptySet(), operator!=(), operator==(), Profile(), and remove().
|
inline |
Definition at line 1275 of file ImmutableSet.h.
References ImmutableSetRef(), and V.
|
inline |
Definition at line 1288 of file ImmutableSet.h.
|
inline |
Definition at line 1320 of file ImmutableSet.h.
|
inline |
Returns true if the set contains the specified value.
Definition at line 1284 of file ImmutableSet.h.
References V.
|
inline |
Definition at line 1321 of file ImmutableSet.h.
|
inlinestatic |
Definition at line 1271 of file ImmutableSet.h.
References F, and ImmutableSetRef().
|
inline |
Definition at line 1327 of file ImmutableSet.h.
Referenced by isSingleton().
|
inline |
Definition at line 1296 of file ImmutableSet.h.
|
inline |
Return true if the set contains no elements.
Definition at line 1308 of file ImmutableSet.h.
|
inline |
Return true if the set contains exactly one element.
This method runs in constant time.
Definition at line 1312 of file ImmutableSet.h.
References getHeight().
|
inline |
Definition at line 1302 of file ImmutableSet.h.
References ImmutableSetRef(), and RHS.
|
inline |
Definition at line 1298 of file ImmutableSet.h.
References ImmutableSetRef(), and RHS.
|
inline |
|
inlinestatic |
Definition at line 1329 of file ImmutableSet.h.
References ImmutableSetRef().
|
inline |
Definition at line 1279 of file ImmutableSet.h.
References ImmutableSetRef(), and V.
|
inline |
Definition at line 1339 of file ImmutableSet.h.