Factory for creating and updating immutable sets.

Synopsis

Declared in <llvm/ADT/ImmutableSet.h>

class Factory;

Description

Allocates tree nodes from an internal or shared bump‐pointer allocator and, when Canonicalize is true, canonicalizes trees so equal sets share storage.

Member Functions

Name

Description

Factory [constructor]

Constructors

operator= [deleted]

Factories are not assignable.

add

Returns a new set with all elements of Old plus V.

getAllocator

Returns the bump‐pointer allocator used for tree nodes.

getEmptySet

Returns an immutable set that contains no elements.

getTreeFactory

Returns the underlying tree factory (for advanced clients).

remove

Returns a new set with all elements of Old except V.

unionSets

Returns the union of sets A and B.

Created with MrDocs