Example #1
0
 public void remove()
 {
     CNode old = m_cursor.Next;
     if (m_cursor == old)
         m_cursor = null;
     else
         m_cursor.Next = old.Next;
 }
Example #2
0
        public void remove()
        {
            CNode old = m_cursor.Next;

            if (m_cursor == old)
            {
                m_cursor = null;
            }
            else
            {
                m_cursor.Next = old.Next;
            }
        }
Example #3
0
 public void add(string n)
 {
     CNode v = new CNode();
     v.Elem = n;
     if (isEmpty())
     {
         v.Next = v; //circul with only 1 item
         m_cursor = v;
     }
     else
     {
         v.Next = m_cursor.Next;
         m_cursor.Next = v;
     }
 }
Example #4
0
        public void add(string n)
        {
            CNode v = new CNode();

            v.Elem = n;
            if (isEmpty())
            {
                v.Next   = v; //circul with only 1 item
                m_cursor = v;
            }
            else
            {
                v.Next        = m_cursor.Next;
                m_cursor.Next = v;
            }
        }
Example #5
0
 public void advance()
 {
     m_cursor = m_cursor.Next;
 }
Example #6
0
 public CircularList()
 {
     m_cursor = null;
 }
Example #7
0
 public void advance()
 {
     m_cursor = m_cursor.Next;
 }
Example #8
0
 public CircularList()
 {
     m_cursor = null;
 }