15 #ifndef LLVM_ADT_ILIST_NODE_H
16 #define LLVM_ADT_ILIST_NODE_H
20 template<
typename NodeTy>
25 template<
typename NodeTy>
31 const NodeTy *
getPrev()
const {
return Prev; }
36 template<
typename NodeTy>
37 struct ilist_nextprev_traits;
42 template<
typename NodeTy>
47 NodeTy *getNext() {
return Next; }
48 const NodeTy *getNext()
const {
return Next; }
49 void setNext(NodeTy *
N) { Next =
N; }
70 const NodeTy *Prev = this->
getPrev();
81 NodeTy *Next = getNext();
92 const NodeTy *Next = getNext();
const NodeTy * getPrevNode() const
Get the previous node, or 0 for the list head.
const NodeTy * getPrev() const
NodeTy * getNextNode()
Get the next node, or 0 for the list tail.
ilist_nextprev_traits - A fragment for template traits for intrusive list that provides default next/...
NodeTy * getPrevNode()
Get the previous node, or 0 for the list head.
const NodeTy * getNextNode() const
Get the next node, or 0 for the list tail.
ilist_half_node - Base class that provides prev services for sentinels.
ilist_node - Base class that provides next/prev services for nodes that use ilist_nextprev_traits or ...