LLVM 22.0.0git
llvm::ilist_node_with_parent< NodeTy, ParentTy, Options > Class Template Reference

An ilist node that can access its parent list. More...

#include "llvm/ADT/ilist_node.h"

Inheritance diagram for llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >:
[legend]

Public Member Functions

Adjacent Node Accessors

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

NodeTy * getPrevNode ()
const NodeTy * getPrevNode () const
 Get the previous node, or nullptr for the list head.
NodeTy * getNextNode ()
 Get the next node, or nullptr for the list tail.
const NodeTy * getNextNode () const
 Get the next node, or nullptr for the list tail.
Public Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NodeTy, Options... >::type >
self_iterator getIterator ()
reverse_self_iterator getReverseIterator ()
std::enable_if_t< T::is_sentinel_tracking_explicit, boolisSentinel () const
 Check whether this is the sentinel node.
Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< ilist_detail::compute_node_options< NodeTy, Options... >::type >, ilist_detail::compute_node_options< NodeTy, Options... >::type::parent_ty >
const ilist_detail::compute_node_options< NodeTy, Options... >::type::parent_ty * getParent () const
void setParent (ilist_detail::compute_node_options< NodeTy, Options... >::type::parent_ty *Parent)

Protected Member Functions

 ilist_node_with_parent ()=default
Protected Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NodeTy, Options... >::type >
 ilist_node_impl ()=default

Additional Inherited Members

Protected Types inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< NodeTy, Options... >::type >
using self_iterator
using const_self_iterator
using reverse_self_iterator
using const_reverse_self_iterator

Detailed Description

template<typename NodeTy, typename ParentTy, class... Options>
class llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >

An ilist node that can access its parent list.

Requires NodeTy to have getParent() to find the parent node, and the ParentTy to have getSublistAccess() to get a reference to the list.

Definition at line 323 of file ilist_node.h.

Constructor & Destructor Documentation

◆ ilist_node_with_parent()

Member Function Documentation

◆ getNextNode() [1/2]

◆ getNextNode() [2/2]

template<typename NodeTy, typename ParentTy, class... Options>
const NodeTy * llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode ( ) const
inline

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

Definition at line 364 of file ilist_node.h.

References getNextNode(), and ilist_node_with_parent().

◆ getPrevNode() [1/2]

◆ getPrevNode() [2/2]

template<typename NodeTy, typename ParentTy, class... Options>
const NodeTy * llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getPrevNode ( ) const
inline

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

Definition at line 350 of file ilist_node.h.

References getPrevNode(), and ilist_node_with_parent().


The documentation for this class was generated from the following file: