示例#1
0
 public LinkedQueue()
 {
     _Tail = null;
     _Size = 0;
 }
示例#2
0
 public void enqueue(T item)
 {
     this._Tail = new QueueNode <T>(item, this._Tail);
     this._Size++;
 }
示例#3
0
 public QueueNode(T item, QueueNode <T> parent)
 {
     this._Parent = parent;
     this._Item   = item;
 }