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

            if (m_cursor == old)
            {
                m_cursor = null;
            }
            else
            {
                m_cursor.Next = old.Next;
            }
        }
Esempio n. 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;
     }
 }
Esempio n. 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;
            }
        }
Esempio n. 5
0
 public void advance()
 {
     m_cursor = m_cursor.Next;
 }
Esempio n. 6
0
 public CircularList()
 {
     m_cursor = null;
 }
Esempio n. 7
0
 public void advance()
 {
     m_cursor = m_cursor.Next;
 }
Esempio n. 8
0
 public CircularList()
 {
     m_cursor = null;
 }