17 #include <pia/common/common_definitions.h> 18 #include <pia/common/common_ListNode.h> 68 void InitListNode(ListNode* pNode)
70 pNode->InitListNode();
75 void InsertBeforeNode(ListNode* pBasis, ListNode* pNode);
77 void InsertAfterNode(ListNode* pBasis, ListNode* pNode);
79 void EraseNode(ListNode* pNode);
81 bool IsIncludeNode(
const ListNode* pNode)
const;
84 void PushFrontNode(ListNode* pNode)
86 InsertAfterNode(&m_Terminator, pNode);
89 void PushBackNode(ListNode* pNode)
91 InsertBeforeNode(&m_Terminator, pNode);
94 ListNode* PopFrontNode();
96 ListNode* PopBackNode();
99 ListNode* FrontNode()
const 101 return (m_Size > 0) ? m_Terminator.m_pNext : NULL;
104 ListNode* BackNode()
const 106 return (m_Size > 0) ? m_Terminator.m_pPrev : NULL;
109 void RotateNode(ListNode* pNode);
112 const ListNode* Terminator()
const 114 return &m_Terminator;
119 ListBase(
const ListBase& rhs);
120 ListBase& operator=(
const ListBase& rhs);
123 ListNode m_Terminator;
This is the common base class used inside the Pia library.
Definition: common_RootObject.h:40