LLVM  mainline
Protected Member Functions
llvm::ilist_node_with_parent< NodeTy, ParentTy > Class Template Reference

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

#include <ilist_node.h>

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

List of all members.

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.

Protected Member Functions

 ilist_node_with_parent ()

Detailed Description

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

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


Constructor & Destructor Documentation

template<typename NodeTy, typename ParentTy>
llvm::ilist_node_with_parent< NodeTy, ParentTy >::ilist_node_with_parent ( ) [protected]

Member Function Documentation

template<typename NodeTy, typename ParentTy>
NodeTy* llvm::ilist_node_with_parent< NodeTy, ParentTy >::getNextNode ( ) [inline]
template<typename NodeTy, typename ParentTy>
const NodeTy* llvm::ilist_node_with_parent< NodeTy, ParentTy >::getNextNode ( ) const [inline]

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

Definition at line 115 of file ilist_node.h.

template<typename NodeTy, typename ParentTy>
NodeTy* llvm::ilist_node_with_parent< NodeTy, ParentTy >::getPrevNode ( ) [inline]
template<typename NodeTy, typename ParentTy>
const NodeTy* llvm::ilist_node_with_parent< NodeTy, ParentTy >::getPrevNode ( ) const [inline]

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

Definition at line 102 of file ilist_node.h.


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