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>
Method Overview
- public ImmutableSet<ValT, ValInfo>(llvm::ImmutableSet::TreeTy * R)
- public ImmutableSet<ValT, ValInfo>(const ImmutableSet<ValT, ValInfo> & X)
- 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 template <typename Callback>void foreach(Callback & C)
- public template <typename Callback>void foreach()
- 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
- public ~ImmutableSet<ValT, ValInfo>()
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
¶ImmutableSet<ValT, ValInfo>(
    const ImmutableSet<ValT, ValInfo>& X)
ImmutableSet<ValT, ValInfo>(
    const ImmutableSet<ValT, ValInfo>& X)Declared at: llvm/include/llvm/ADT/ImmutableSet.h:975
Parameters
- const ImmutableSet<ValT, ValInfo>& X
¶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:1094
Parameters
- llvm::FoldingSetNodeID& ID
- const ImmutableSet<ValT, ValInfo>& S
¶void Profile(llvm::FoldingSetNodeID& ID) const
void Profile(llvm::FoldingSetNodeID& ID) constDeclared at: llvm/include/llvm/ADT/ImmutableSet.h:1098
Parameters
¶llvm::ImmutableSet::iterator begin() const
llvm::ImmutableSet::iterator begin() constDeclared at: llvm/include/llvm/ADT/ImmutableSet.h:1085
¶bool contains(
    llvm::ImmutableSet::value_type_ref V) const
bool contains(
    llvm::ImmutableSet::value_type_ref V) constDescription
Returns true if the set contains the specified value.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1045
Parameters
- llvm::ImmutableSet::value_type_ref V
¶llvm::ImmutableSet::iterator end() const
llvm::ImmutableSet::iterator end() constDeclared at: llvm/include/llvm/ADT/ImmutableSet.h:1086
¶template <typename Callback>
void foreach (Callback& C)
template <typename Callback>
void foreach (Callback& C)Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1074
Templates
- Callback
Parameters
- Callback& C
¶template <typename Callback>
void foreach ()
template <typename Callback>
void foreach ()Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1077
Templates
- Callback
¶unsigned int getHeight() const
unsigned int getHeight() constDeclared at: llvm/include/llvm/ADT/ImmutableSet.h:1092
¶llvm::ImmutableSet::TreeTy* getRoot()
llvm::ImmutableSet::TreeTy* getRoot()Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1057
¶llvm::ImmutableSet::TreeTy* getRootWithoutRetain()
    const
llvm::ImmutableSet::TreeTy* getRootWithoutRetain()
    constDeclared at: llvm/include/llvm/ADT/ImmutableSet.h:1062
¶bool isEmpty() const
bool isEmpty() constDescription
isEmpty - Return true if the set contains no elements.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1067
¶bool isSingleton() const
bool isSingleton() constDescription
isSingleton - Return true if the set contains exactly one element. This method runs in constant time.
Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1071
¶void validateTree() const
void validateTree() constDeclared at: llvm/include/llvm/ADT/ImmutableSet.h:1104
¶~ImmutableSet<ValT, ValInfo>()
~ImmutableSet<ValT, ValInfo>()Declared at: llvm/include/llvm/ADT/ImmutableSet.h:979