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>

Member Variables

private IntrusiveRefCntPtr<llvm::ImmutableSet::TreeTy> Root

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

static void Profile(
    llvm::FoldingSetNodeID& ID,
    const ImmutableSet<ValT, ValInfo>& S)

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

Parameters

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

void Profile(llvm::FoldingSetNodeID& ID) const

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

Parameters

llvm::FoldingSetNodeID& ID

llvm::ImmutableSet::iterator begin() const

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

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

Parameters

llvm::ImmutableSet::value_type_ref V

llvm::ImmutableSet::iterator end() const

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

unsigned int getHeight() const

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

llvm::ImmutableSet::TreeTy* getRoot()

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

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

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

bool isEmpty() const

Description

isEmpty - Return true if the set contains no elements.

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

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

void validateTree() const

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