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

Methods

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)

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)

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1094

Parameters

llvm::FoldingSetNodeID& ID
const ImmutableSet<ValT, ValInfo>& S

void Profile(llvm::FoldingSetNodeID& ID) const

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1098

Parameters

llvm::FoldingSetNodeID& ID

llvm::ImmutableSet::iterator begin() const

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1085

bool contains(
    llvm::ImmutableSet::value_type_ref V) const

Description

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

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1086

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 ()

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1077

Templates

Callback

unsigned int getHeight() const

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1092

llvm::ImmutableSet::TreeTy* getRoot()

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1057

llvm::ImmutableSet::TreeTy* getRootWithoutRetain()
    const

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1062

bool isEmpty() const

Description

isEmpty - Return true if the set contains no elements.

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1067

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:1071

void validateTree() const

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:1104

~ImmutableSet<ValT, ValInfo>()

Declared at: llvm/include/llvm/ADT/ImmutableSet.h:979