class ImmutableSet::Factory
Declaration
class ImmutableSet::Factory { /* full declaration omitted */ };
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:992
Method Overview
- public Factory(bool canonicalize = true)
- public Factory(llvm::BumpPtrAllocator & Alloc, bool canonicalize = true)
- public Factory(const llvm::ImmutableSet::Factory & RHS)
- public ImmutableSet<ValT, ValInfo> add(ImmutableSet<ValT, ValInfo> Old, llvm::ImmutableSet::value_type_ref V)
- public llvm::BumpPtrAllocator & getAllocator()
- public ImmutableSet<ValT, ValInfo> getEmptySet()
- public typename TreeTy::Factory * getTreeFactory() const
- public ImmutableSet<ValT, ValInfo> remove(ImmutableSet<ValT, ValInfo> Old, llvm::ImmutableSet::value_type_ref V)
Methods
¶Factory(bool canonicalize = true)
Factory(bool canonicalize = true)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:997
Parameters
- bool canonicalize = true
¶Factory(llvm::BumpPtrAllocator& Alloc,
bool canonicalize = true)
Factory(llvm::BumpPtrAllocator& Alloc,
bool canonicalize = true)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1000
Parameters
- llvm::BumpPtrAllocator& Alloc
- bool canonicalize = true
¶Factory(const llvm::ImmutableSet::Factory& RHS)
Factory(const llvm::ImmutableSet::Factory& RHS)
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1003
Parameters
- const llvm::ImmutableSet::Factory& RHS
¶ImmutableSet<ValT, ValInfo> add(
ImmutableSet<ValT, ValInfo> Old,
llvm::ImmutableSet::value_type_ref V)
ImmutableSet<ValT, ValInfo> add(
ImmutableSet<ValT, ValInfo> Old,
llvm::ImmutableSet::value_type_ref V)
Description
add - Creates a new immutable set that contains all of the values of the original set with the addition of the specified value. If the original set already included the value, then the original set is returned and no memory is allocated. The time and space complexity of this operation is logarithmic in the size of the original set. The memory allocated to represent the set is released when the factory object that created the set is destroyed.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1018
Parameters
- ImmutableSet<ValT, ValInfo> Old
- llvm::ImmutableSet::value_type_ref V
¶llvm::BumpPtrAllocator& getAllocator()
llvm::BumpPtrAllocator& getAllocator()
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1035
¶ImmutableSet<ValT, ValInfo> getEmptySet()
ImmutableSet<ValT, ValInfo> getEmptySet()
Description
getEmptySet - Returns an immutable set that contains no elements.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1007
¶typename TreeTy::Factory* getTreeFactory() const
typename TreeTy::Factory* getTreeFactory() const
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1037
¶ImmutableSet<ValT, ValInfo> remove(
ImmutableSet<ValT, ValInfo> Old,
llvm::ImmutableSet::value_type_ref V)
ImmutableSet<ValT, ValInfo> remove(
ImmutableSet<ValT, ValInfo> Old,
llvm::ImmutableSet::value_type_ref V)
Description
remove - Creates a new immutable set that contains all of the values of the original set with the exception of the specified value. If the original set did not contain the value, the original set is returned and no memory is allocated. The time and space complexity of this operation is logarithmic in the size of the original set. The memory allocated to represent the set is released when the factory object that created the set is destroyed.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1030
Parameters
- ImmutableSet<ValT, ValInfo> Old
- llvm::ImmutableSet::value_type_ref V