LLVM API Documentation
#include <ImmutableSet.h>
Public Member Functions | |
| Factory () | |
| Factory (BumpPtrAllocator &Alloc) | |
| ImmutableSet | GetEmptySet () |
| GetEmptySet - Returns an immutable set that contains no elements. | |
| ImmutableSet | Add (ImmutableSet Old, value_type_ref V) |
| ImmutableSet | Remove (ImmutableSet Old, value_type_ref V) |
| BumpPtrAllocator & | getAllocator () |
Definition at line 951 of file ImmutableSet.h.
| llvm::ImmutableSet< ValT, ValInfo >::Factory::Factory | ( | ) | [inline] |
Definition at line 955 of file ImmutableSet.h.
| llvm::ImmutableSet< ValT, ValInfo >::Factory::Factory | ( | BumpPtrAllocator & | Alloc | ) | [inline] |
Definition at line 957 of file ImmutableSet.h.
| ImmutableSet llvm::ImmutableSet< ValT, ValInfo >::Factory::GetEmptySet | ( | ) | [inline] |
GetEmptySet - Returns an immutable set that contains no elements.
Definition at line 961 of file ImmutableSet.h.
References llvm::ImutAVLFactory< ImutInfo >::GetEmptyTree(), and llvm::ImmutableSet< ValT, ValInfo >::ImmutableSet().
| ImmutableSet llvm::ImmutableSet< ValT, ValInfo >::Factory::Add | ( | ImmutableSet | Old, | |
| value_type_ref | V | |||
| ) | [inline] |
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.
Definition at line 970 of file ImmutableSet.h.
References llvm::ImutAVLFactory< ImutInfo >::Add(), llvm::ImmutableSet< ValT, ValInfo >::ImmutableSet(), and llvm::ImmutableSet< ValT, ValInfo >::Root.
| ImmutableSet llvm::ImmutableSet< ValT, ValInfo >::Factory::Remove | ( | ImmutableSet | Old, | |
| value_type_ref | V | |||
| ) | [inline] |
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.
Definition at line 981 of file ImmutableSet.h.
References llvm::ImmutableSet< ValT, ValInfo >::ImmutableSet(), llvm::ImutAVLFactory< ImutInfo >::Remove(), and llvm::ImmutableSet< ValT, ValInfo >::Root.
| BumpPtrAllocator& llvm::ImmutableSet< ValT, ValInfo >::Factory::getAllocator | ( | ) | [inline] |
Definition at line 985 of file ImmutableSet.h.
References llvm::ImutAVLFactory< ImutInfo >::getAllocator().