LLVM 22.0.0git
|
#include "llvm/ADT/ImmutableSet.h"
Classes | |
class | Factory |
Public Types | |
using | value_type = typename ValInfo::value_type |
using | value_type_ref = typename ValInfo::value_type_ref |
using | TreeTy = ImutAVLTree<ValInfo> |
using | iterator = ImutAVLValueIterator<ImmutableSet> |
Public Member Functions | |
ImmutableSet (TreeTy *R) | |
Constructs a set from a pointer to a tree root. | |
bool | contains (value_type_ref V) const |
Returns true if the set contains the specified value. | |
bool | operator== (const ImmutableSet &RHS) const |
bool | operator!= (const ImmutableSet &RHS) const |
TreeTy * | getRoot () |
TreeTy * | getRootWithoutRetain () const |
bool | isEmpty () const |
isEmpty - Return true if the set contains no elements. | |
bool | isSingleton () const |
isSingleton - 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 void | Profile (FoldingSetNodeID &ID, const ImmutableSet &S) |
Friends | |
class | Factory |
Definition at line 984 of file ImmutableSet.h.
using llvm::ImmutableSet< ValT, ValInfo >::iterator = ImutAVLValueIterator<ImmutableSet> |
Definition at line 1084 of file ImmutableSet.h.
using llvm::ImmutableSet< ValT, ValInfo >::TreeTy = ImutAVLTree<ValInfo> |
Definition at line 988 of file ImmutableSet.h.
using llvm::ImmutableSet< ValT, ValInfo >::value_type = typename ValInfo::value_type |
Definition at line 986 of file ImmutableSet.h.
using llvm::ImmutableSet< ValT, ValInfo >::value_type_ref = typename ValInfo::value_type_ref |
Definition at line 987 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 998 of file ImmutableSet.h.
Referenced by llvm::ImmutableSet< ValT, ValInfo >::Factory::add(), llvm::ImmutableSet< ValT, ValInfo >::Factory::getEmptySet(), operator!=(), operator==(), Profile(), and llvm::ImmutableSet< ValT, ValInfo >::Factory::remove().
|
inline |
Definition at line 1086 of file ImmutableSet.h.
|
inline |
Returns true if the set contains the specified value.
Definition at line 1053 of file ImmutableSet.h.
|
inline |
Definition at line 1087 of file ImmutableSet.h.
|
inline |
Definition at line 1093 of file ImmutableSet.h.
Referenced by isSingleton().
|
inline |
Definition at line 1066 of file ImmutableSet.h.
|
inline |
Definition at line 1071 of file ImmutableSet.h.
|
inline |
isEmpty - Return true if the set contains no elements.
Definition at line 1074 of file ImmutableSet.h.
|
inline |
isSingleton - Return true if the set contains exactly one element.
This method runs in constant time.
Definition at line 1078 of file ImmutableSet.h.
References getHeight().
|
inline |
Definition at line 1061 of file ImmutableSet.h.
References ImmutableSet(), and RHS.
|
inline |
Definition at line 1057 of file ImmutableSet.h.
References ImmutableSet(), and RHS.
|
inline |
|
inlinestatic |
Definition at line 1095 of file ImmutableSet.h.
References ImmutableSet().
|
inline |
Definition at line 1105 of file ImmutableSet.h.
|
friend |
Definition at line 1050 of file ImmutableSet.h.