LLVM 20.0.0git
Protected Member Functions | List of all members
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 >:
Inheritance graph
[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< OptionsT >
self_iterator getIterator ()
 
const_self_iterator getIterator () const
 
reverse_self_iterator getReverseIterator ()
 
const_reverse_self_iterator getReverseIterator () const
 
bool isSentinel () const
 Check whether this is the sentinel node.
 
- Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< OptionsT >, OptionsT::parent_ty >
const OptionsT::parent_ty * getParent () const
 
OptionsT::parent_ty * getParent ()
 
void setParent (OptionsT::parent_ty *Parent)
 

Protected Member Functions

 ilist_node_with_parent ()=default
 
- Protected Member Functions inherited from llvm::ilist_node_impl< OptionsT >
 ilist_node_impl ()=default
 

Additional Inherited Members

- Protected Types inherited from llvm::ilist_node_impl< OptionsT >
using self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, false >::type
 
using const_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, true >::type
 
using reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, false >::type
 
using const_reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, true >::type
 

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 321 of file ilist_node.h.

Constructor & Destructor Documentation

◆ ilist_node_with_parent()

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

Member Function Documentation

◆ getNextNode() [1/2]

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

◆ 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 362 of file ilist_node.h.

References llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode().

◆ getPrevNode() [1/2]

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

◆ 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 348 of file ilist_node.h.

References llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getPrevNode().


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