protected void BaseDump()
        {
            Debug.WriteLine("");
            Debug.WriteLine("    Active Nodes:  " + this.mNumActive);
            Debug.WriteLine("    Reserve Nodes: " + this.mNumReserved);
            Debug.WriteLine("    Total Nodes:   " + this.mTotalNodes);

            DLink pNode = null;

            //-----------Print Active List--------------
            if (this.pActiveHead == null)
            {
                Debug.WriteLine("    Active Head: null");
            }
            else
            {
                pNode = this.pActiveHead;
                Debug.WriteLine("    Active Head: " + pNode.GetHashCode());
            }

            Debug.WriteLine("   ------ Active List: -----------\n");
            pNode = this.pActiveHead;
            int i = 0;

            while (pNode != null)
            {
                Debug.WriteLine("   {0}: -------------", i);
                this.DerivedDumpNode(pNode);
                i++;
                pNode = pNode.pNext;
            }

            //------------Print Reserve List--------------
            if (this.pReserveHead == null)
            {
                Debug.WriteLine("\n   Reserve Head: null");
            }
            else
            {
                pNode = this.pReserveHead;
                Debug.WriteLine("\n   Reserve Head: " + pNode.GetHashCode());
            }


            Debug.WriteLine("   ------ Reserve List: ----------\n");

            pNode = this.pReserveHead;
            i     = 0;
            while (pNode != null)
            {
                Debug.WriteLine("   {0}: -------------", i);
                this.DerivedDumpNode(pNode);
                i++;
                pNode = pNode.pNext;
            }
            Debug.WriteLine("\n   ****** End ******\n");
        }
Ejemplo n.º 2
0
        virtual protected void DerivedDestroyNode(DLink pDLink)
        {
#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine(" {0} ({1})", pDLink, pDLink.GetHashCode());
#endif
            pDLink = null;
        }
Ejemplo n.º 3
0
        override protected void DerivedDestroyNode(DLink pLink)
        {
            // default: do nothing
#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("             {0} ({1})", pLink, pLink.GetHashCode());
#endif
            pLink = null;
        }
Ejemplo n.º 4
0
        override protected void DerivedDestroyNode(DLink pLink)
        {
            // default: do nothing
#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("     {0} ({1})", pLink, pLink.GetHashCode());
#endif
            SpriteBatch pNode = (SpriteBatch)pLink;
            Debug.Assert(pNode != null);
            pNode.Destroy();
        }
Ejemplo n.º 5
0
 public virtual void Print()
 {
     Debug.WriteLine("    Next (Hashcode): " + ((pNext != null) ? pNext.GetHashCode().ToString() : "Null"));
     Debug.WriteLine("    Prev (Hashcode): " + ((pPrev != null) ? pPrev.GetHashCode().ToString() : "Null"));
 }
Ejemplo n.º 6
0
        protected void baseDump()
        {
            Debug.WriteLine("");
            Debug.WriteLine("   ****** Manager Begin ****************\n");

            Debug.WriteLine("         mDeltaGrow: {0} ", mDeltaGrow);
            Debug.WriteLine("     mTotalNumNodes: {0} ", mTotalNumNodes);
            Debug.WriteLine("       mNumReserved: {0} ", mNumReserved);
            Debug.WriteLine("         mNumActive: {0} \n", mNumActive);
            Debug.WriteLine("         mNumActivePeak: {0} \n", mNumActivePeak);
            Debug.WriteLine("         mInitialNumReserved: {0} \n", mInitialNumReserved);

            DLink pNode = null;

            if (this.poActive == null)
            {
                Debug.WriteLine("    Active Head: null");
            }
            else
            {
                pNode = this.poActive;
                Debug.WriteLine("    Active Head: ({0})", pNode.GetHashCode());
            }

            if (this.poReserve == null)
            {
                Debug.WriteLine("   Reserve Head: null\n");
            }
            else
            {
                pNode = this.poReserve;
                Debug.WriteLine("   Reserve Head: ({0})\n", pNode.GetHashCode());
            }

            Debug.WriteLine("   ------ Active List: -----------\n");

            pNode = this.poActive;

            int i = 0;

            while (pNode != null)
            {
                Debug.WriteLine("   {0}: -------------", i);
                this.derivedDumpNode(pNode);
                i++;
                pNode = pNode.pNext;
            }

            Debug.WriteLine("");
            Debug.WriteLine("   ------ Reserve List: ----------\n");

            pNode = this.poReserve;
            i     = 0;
            while (pNode != null)
            {
                Debug.WriteLine("   {0}: -------------", i);
                this.derivedDumpNode(pNode);
                i++;
                pNode = pNode.pNext;
            }
            Debug.WriteLine("\n   ****** Manager End ******************\n");
        }