class ImmutableSetRef
Declaration
template <typename ValT, typename ValInfo = ImutContainerInfo<ValT>>
class ImmutableSetRef { /* full declaration omitted */ };
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1109
Templates
- ValT
- ValInfo = ImutContainerInfo<ValT>
Method Overview
- public ImmutableSetRef<ValT, ValInfo>(const ImmutableSetRef<ValT, ValInfo> & X)
- public ImmutableSetRef<ValT, ValInfo>(llvm::ImmutableSetRef::TreeTy * R, llvm::ImmutableSetRef::FactoryTy * F)
- public void Profile(llvm::FoldingSetNodeID & ID) const
- public static void Profile(llvm::FoldingSetNodeID & ID, const ImmutableSetRef<ValT, ValInfo> & S)
- public ImmutableSetRef<ValT, ValInfo> add(llvm::ImmutableSetRef::value_type_ref V)
- public ImmutableSet<ValT> asImmutableSet(bool canonicalize = true) const
- public llvm::ImmutableSetRef::iterator begin() const
- public bool contains(llvm::ImmutableSetRef::value_type_ref V) const
- public llvm::ImmutableSetRef::iterator end() const
- public static ImmutableSetRef<ValT, ValInfo> getEmptySet(llvm::ImmutableSetRef::FactoryTy * F)
- public unsigned int getHeight() const
- public llvm::ImmutableSetRef::TreeTy * getRootWithoutRetain() const
- public bool isEmpty() const
- public bool isSingleton() const
- public ImmutableSetRef<ValT, ValInfo> remove(llvm::ImmutableSetRef::value_type_ref V)
- public void validateTree() const
- public ~ImmutableSetRef<ValT, ValInfo>()
Methods
¶ImmutableSetRef<ValT, ValInfo>(
const ImmutableSetRef<ValT, ValInfo>& X)
ImmutableSetRef<ValT, ValInfo>(
const ImmutableSetRef<ValT, ValInfo>& X)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1131
Parameters
- const ImmutableSetRef<ValT, ValInfo>& X
¶ImmutableSetRef<ValT, ValInfo>(
llvm::ImmutableSetRef::TreeTy* R,
llvm::ImmutableSetRef::FactoryTy* F)
ImmutableSetRef<ValT, ValInfo>(
llvm::ImmutableSetRef::TreeTy* R,
llvm::ImmutableSetRef::FactoryTy* F)
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:1125
Parameters
- llvm::ImmutableSetRef::TreeTy* R
- llvm::ImmutableSetRef::FactoryTy* F
¶void Profile(llvm::FoldingSetNodeID& ID) const
void Profile(llvm::FoldingSetNodeID& ID) const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1211
Parameters
¶static void Profile(
llvm::FoldingSetNodeID& ID,
const ImmutableSetRef<ValT, ValInfo>& S)
static void Profile(
llvm::FoldingSetNodeID& ID,
const ImmutableSetRef<ValT, ValInfo>& S)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1207
Parameters
- llvm::FoldingSetNodeID& ID
- const ImmutableSetRef<ValT, ValInfo>& S
¶ImmutableSetRef<ValT, ValInfo> add(
llvm::ImmutableSetRef::value_type_ref V)
ImmutableSetRef<ValT, ValInfo> add(
llvm::ImmutableSetRef::value_type_ref V)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1155
Parameters
- llvm::ImmutableSetRef::value_type_ref V
¶ImmutableSet<ValT> asImmutableSet(
bool canonicalize = true) const
ImmutableSet<ValT> asImmutableSet(
bool canonicalize = true) const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1168
Parameters
- bool canonicalize = true
¶llvm::ImmutableSetRef::iterator begin() const
llvm::ImmutableSetRef::iterator begin() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1198
¶bool contains(
llvm::ImmutableSetRef::value_type_ref V) const
bool contains(
llvm::ImmutableSetRef::value_type_ref V) const
Description
Returns true if the set contains the specified value.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1164
Parameters
- llvm::ImmutableSetRef::value_type_ref V
¶llvm::ImmutableSetRef::iterator end() const
llvm::ImmutableSetRef::iterator end() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1199
¶static ImmutableSetRef<ValT, ValInfo> getEmptySet(
llvm::ImmutableSetRef::FactoryTy* F)
static ImmutableSetRef<ValT, ValInfo> getEmptySet(
llvm::ImmutableSetRef::FactoryTy* F)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1151
Parameters
- llvm::ImmutableSetRef::FactoryTy* F
¶unsigned int getHeight() const
unsigned int getHeight() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1205
¶llvm::ImmutableSetRef::TreeTy*
getRootWithoutRetain() const
llvm::ImmutableSetRef::TreeTy*
getRootWithoutRetain() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1173
¶bool isEmpty() const
bool isEmpty() const
Description
isEmpty - Return true if the set contains no elements.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1186
¶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:1190
¶ImmutableSetRef<ValT, ValInfo> remove(
llvm::ImmutableSetRef::value_type_ref V)
ImmutableSetRef<ValT, ValInfo> remove(
llvm::ImmutableSetRef::value_type_ref V)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1159
Parameters
- llvm::ImmutableSetRef::value_type_ref V
¶void validateTree() const
void validateTree() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1217
¶~ImmutableSetRef<ValT, ValInfo>()
~ImmutableSetRef<ValT, ValInfo>()
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1137