15 #ifndef LLVM_ADT_ILISTNODE_H
16 #define LLVM_ADT_ILISTNODE_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.
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.