class ilist_node_with_parent

Declaration

template <typename NodeTy, typename ParentTy, class... Options>
class ilist_node_with_parent { /* full declaration omitted */ };

Description

An ilist node that can access its parent list. Requires \c NodeTy to have \a getParent() to find the parent node, and the\c ParentTy to have \a getSublistAccess() to get a reference to the list.

Declared at: llvm/include/llvm/ADT/ilist_node.h:257

Templates

NodeTy
ParentTy
Options

Method Overview

Methods

NodeTy* getNextNode()

Description

Get the next node, or \c nullptr for the list tail.

Declared at: llvm/include/llvm/ADT/ilist_node.h:289

const NodeTy* getNextNode() const

Description

Get the next node, or \c nullptr for the list tail.

Declared at: llvm/include/llvm/ADT/ilist_node.h:298

const ParentTy* getNodeParent() const

Description

Forward to NodeTy::getParent(). Note: do not use the name "getParent()". We want a compile error (instead of recursion) when the subclass fails to implement \a getParent().

Declared at: llvm/include/llvm/ADT/ilist_node.h:267

NodeTy* getPrevNode()

Description

@ { Get the previous node, or \c nullptr for the list head.

Declared at: llvm/include/llvm/ADT/ilist_node.h:275

const NodeTy* getPrevNode() const

Description

Get the previous node, or \c nullptr for the list head.

Declared at: llvm/include/llvm/ADT/ilist_node.h:284

ilist_node_with_parent<NodeTy,
                       ParentTy,
                       Options...>()

Declared at: llvm/include/llvm/ADT/ilist_node.h:259