LLVM: llvm::ImmutableSetRef< ValT, ValInfo > Class Template Reference (original) (raw)
#include "[llvm/ADT/ImmutableSet.h](ImmutableSet%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| using | value_type = typename ValInfo::value_type |
| using | value_type_ref = typename ValInfo::value_type_ref |
| using | TreeTy = ImutAVLTree |
| using | FactoryTy = typename TreeTy::Factory |
| using | iterator = ImutAVLValueIterator<ImmutableSetRef> |
| Public Member Functions | |
|---|---|
| ImmutableSetRef (TreeTy *R, FactoryTy *F) | |
| Constructs a set from a pointer to a tree root. | |
| ImmutableSetRef | add (value_type_ref V) |
| ImmutableSetRef | remove (value_type_ref V) |
| bool | contains (value_type_ref V) const |
| Returns true if the set contains the specified value. | |
| ImmutableSet< ValT > | asImmutableSet (bool canonicalize=true) const |
| TreeTy * | getRootWithoutRetain () const |
| bool | operator== (const ImmutableSetRef &RHS) const |
| bool | operator!= (const ImmutableSetRef &RHS) 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 |
template<typename ValT, typename ValInfo = ImutContainerInfo>
class llvm::ImmutableSetRef< ValT, ValInfo >
Definition at line 1105 of file ImmutableSet.h.
◆ FactoryTy
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ iterator
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ TreeTy
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ value_type
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ value_type_ref
template<typename ValT, typename ValInfo = ImutContainerInfo>
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ add()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ asImmutableSet()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ begin()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ contains()
template<typename ValT, typename ValInfo = ImutContainerInfo>
Returns true if the set contains the specified value.
Definition at line 1136 of file ImmutableSet.h.
◆ end()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ getEmptySet()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ getHeight()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ getRootWithoutRetain()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ isEmpty()
template<typename ValT, typename ValInfo = ImutContainerInfo>
isEmpty - Return true if the set contains no elements.
Definition at line 1157 of file ImmutableSet.h.
◆ isSingleton()
template<typename ValT, typename ValInfo = ImutContainerInfo>
isSingleton - Return true if the set contains exactly one element.
This method runs in constant time.
Definition at line 1161 of file ImmutableSet.h.
References getHeight().
◆ operator!=()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ operator==()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ Profile() [1/2]
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ Profile() [2/2]
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ remove()
template<typename ValT, typename ValInfo = ImutContainerInfo>
◆ validateTree()
template<typename ValT, typename ValInfo = ImutContainerInfo>
The documentation for this class was generated from the following file:
- include/llvm/ADT/ImmutableSet.h