llvm::ilist_node_traits

A fragment for template traits for intrusive list that provides default node related operations.

Synopsis

Declared in <llvm/ADT/ilist.h>

template<typename NodeTy>
struct ilist_node_traits
    : ilist_alloc_traits<NodeTy>
    , ilist_callback_traits<NodeTy>

Description

TODO: Remove this layer of indirection. It's not necessary.

Base Classes

NameDescription
ilist_alloc_traits<NodeTy>Use delete by default for iplist and ilist.
ilist_callback_traits<NodeTy>Callbacks do nothing by default in iplist and ilist.

Member Functions

NameDescription
addNodeToList Called when a node is inserted into the list (default: no-op).
removeNodeFromList Called when a node is removed from the list (default: no-op).
transferNodesFromList Callback before transferring nodes to this list. The nodes may already be in this same list.

Static Member Functions

NameDescription
deleteNode Delete node V with the default delete operator.

Derived Classes

NameDescription
ilist_traits Template traits for intrusive list.