class ImmutableSet
Declaration
template <typename ValT, typename ValInfo = ImutContainerInfo<ValT>>
class ImmutableSet { /* full declaration omitted */ };
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:957
Templates
- ValT
- ValInfo = ImutContainerInfo<ValT>
Member Variables
- private IntrusiveRefCntPtr<llvm::ImmutableSet::TreeTy> Root
Method Overview
- public ImmutableSet<ValT, ValInfo>(llvm::ImmutableSet::TreeTy * R)
- public static void Profile(llvm::FoldingSetNodeID & ID, const ImmutableSet<ValT, ValInfo> & S)
- public void Profile(llvm::FoldingSetNodeID & ID) const
- public llvm::ImmutableSet::iterator begin() const
- public bool contains(llvm::ImmutableSet::value_type_ref V) const
- public llvm::ImmutableSet::iterator end() const
- public unsigned int getHeight() const
- public llvm::ImmutableSet::TreeTy * getRoot()
- public llvm::ImmutableSet::TreeTy * getRootWithoutRetain() const
- public bool isEmpty() const
- public bool isSingleton() const
- public void validateTree() const
Methods
¶ImmutableSet<ValT, ValInfo>(
llvm::ImmutableSet::TreeTy* R)
ImmutableSet<ValT, ValInfo>(
llvm::ImmutableSet::TreeTy* R)
Description
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.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:971
Parameters
- llvm::ImmutableSet::TreeTy* R
¶static void Profile(
llvm::FoldingSetNodeID& ID,
const ImmutableSet<ValT, ValInfo>& S)
static void Profile(
llvm::FoldingSetNodeID& ID,
const ImmutableSet<ValT, ValInfo>& S)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1068
Parameters
- llvm::FoldingSetNodeID& ID
- const ImmutableSet<ValT, ValInfo>& S
¶void Profile(llvm::FoldingSetNodeID& ID) const
void Profile(llvm::FoldingSetNodeID& ID) const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1072
Parameters
¶llvm::ImmutableSet::iterator begin() const
llvm::ImmutableSet::iterator begin() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1059
¶bool contains(
llvm::ImmutableSet::value_type_ref V) const
bool contains(
llvm::ImmutableSet::value_type_ref V) const
Description
Returns true if the set contains the specified value.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1026
Parameters
- llvm::ImmutableSet::value_type_ref V
¶llvm::ImmutableSet::iterator end() const
llvm::ImmutableSet::iterator end() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1060
¶unsigned int getHeight() const
unsigned int getHeight() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1066
¶llvm::ImmutableSet::TreeTy* getRoot()
llvm::ImmutableSet::TreeTy* getRoot()
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1039
¶llvm::ImmutableSet::TreeTy* getRootWithoutRetain()
const
llvm::ImmutableSet::TreeTy* getRootWithoutRetain()
const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1044
¶bool isEmpty() const
bool isEmpty() const
Description
isEmpty - Return true if the set contains no elements.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1047
¶bool isSingleton() const
bool isSingleton() const
Description
isSingleton - Return true if the set contains exactly one element. This method runs in constant time.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1051
¶void validateTree() const
void validateTree() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1078