Ejemplo n.º 1
0
        public virtual void PurgeAll()
        {
            DLink pNode = this.pHead;
            DLink pTmp  = null;

            while (pHead != null)
            {
                // hold next, delete current, pass next to current
                pTmp = pNode.GetNext();
                DLink.Remove(ref this.pHead, pNode);
                pNode = pTmp;
            }
        }
Ejemplo n.º 2
0
        protected void BaseRemove(DLink pDLink)
        {
            // check that pDLink is not null
            Debug.Assert(pDLink != null);
            DLink retiredNode = DLink.Remove(ref pActive, pDLink);

            mNumActive--;

            // check that retiredNode is not null
            Debug.Assert(retiredNode != null);
            DLink.AddToFront(ref pReserve, retiredNode);
            mNumReserve++;
        }
Ejemplo n.º 3
0
 override public void Remove(Component pComponent)
 {
     Debug.Assert(pComponent != null);
     DLink.Remove(ref this.poHeadChild, pComponent);
 }
Ejemplo n.º 4
0
 protected void baseDetach(Observer observer)
 {
     Debug.Assert(observer != null);
     DLink.Remove(ref this.pHead, observer);
 }