43 lines
881 B
C#
43 lines
881 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace StgSharp.Logic
|
|
{
|
|
public class ContainerNode<T> where T : INode
|
|
{
|
|
internal readonly T _this;
|
|
internal ContainerNode<T> _previous;
|
|
internal ContainerNode<T> _next;
|
|
internal ContainerNode<T> _side;
|
|
|
|
public virtual ContainerNode<T> Previous
|
|
{
|
|
get { return _previous; }
|
|
set { _previous = value; }
|
|
}
|
|
|
|
public ContainerNode<T> Next
|
|
{
|
|
get { return _next; }
|
|
set { _next = value; }
|
|
}
|
|
|
|
public ContainerNode<T> Side
|
|
{
|
|
get { return _side; }
|
|
set { _side = value; }
|
|
}
|
|
|
|
public T Value
|
|
{
|
|
get { return _this; }
|
|
}
|
|
|
|
public ContainerNode(T t)
|
|
{
|
|
_this = t;
|
|
}
|
|
}
|
|
}
|