16 #include <nn/pia/common/common_Definitions.h>
17 #include <nn/pia/common/common_ListNode.h>
67 void InitListNode(ListNode* pNode)
69 pNode->InitListNode();
74 void InsertBeforeNode(ListNode* pBasis, ListNode* pNode);
76 void InsertAfterNode(ListNode* pBasis, ListNode* pNode);
78 void EraseNode(ListNode* pNode);
80 bool IsIncludeNode(
const ListNode* pNode)
const;
83 void PushFrontNode(ListNode* pNode)
85 InsertAfterNode(&m_Terminator, pNode);
88 void PushBackNode(ListNode* pNode)
90 InsertBeforeNode(&m_Terminator, pNode);
93 ListNode* PopFrontNode();
95 ListNode* PopBackNode();
98 ListNode* FrontNode()
const
100 return (m_Size > 0) ? m_Terminator.m_pNext : NULL;
103 ListNode* BackNode()
const
105 return (m_Size > 0) ? m_Terminator.m_pPrev : NULL;
108 void RotateNode(ListNode* pNode);
111 const ListNode* Terminator()
const
113 return &m_Terminator;
118 ListBase(
const ListBase& rhs);
119 ListBase& operator=(
const ListBase& rhs);
122 ListNode m_Terminator;