public static void Sort <TNode, TNodeList>( ref BidiNodeUtility <TNode> .Dump Dump, ref TNodeList List) where TNode : class, IBidiNode <TNode>, IComparable <TNode> where TNodeList : struct, IBidiNodeList <TNode> { BidiNodeUtility <TNode> .LinkList Link; BidiNodeUtility <TNode> .Alloc(ref List, ref Dump, out Link); Sort(ref Link); List.First = Link.First.Data; List.Last = Link.Last.Data; BidiNodeUtility <TNode> .FreeAssign(ref Link, ref Dump); }
public static void Sort <TNode>( IBidiNodeList <TNode> List) where TNode : class, IBidiNode <TNode>, IComparable <TNode> { BidiNodeUtility <TNode> .LinkList Link; BidiNodeUtility <TNode> .Alloc(List, out Link); Sort(ref Link); List.First = Link.First.Data; List.Last = Link.Last.Data; BidiNodeUtility <TNode> .Assign(ref Link); }
public static void Sort <TNode, TNodeList>( ref TNodeList List, Comparison <TNode> Comparison) where TNode : class, IBidiNode <TNode> where TNodeList : struct, IBidiNodeList <TNode> { BidiNodeUtility <TNode> .LinkList Link; BidiNodeUtility <TNode> .Alloc(ref List, out Link); Sort(ref Link, Comparison); List.First = Link.First.Data; List.Last = Link.Last.Data; BidiNodeUtility <TNode> .Assign(ref Link); }
public static void Sort <TNode>( ref BidiNodeUtility <TNode> .Dump Dump, IBidiNodeList <TNode> List, Comparison <TNode> Comparison) where TNode : class, IBidiNode <TNode> { BidiNodeUtility <TNode> .LinkList Link; BidiNodeUtility <TNode> .Alloc(List, ref Dump, out Link); Sort(ref Link, Comparison); List.First = Link.First.Data; List.Last = Link.Last.Data; BidiNodeUtility <TNode> .FreeAssign(ref Link, ref Dump); }
public static void Sort <TNode, TComparer>( IBidiNodeList <TNode> List, ref TComparer Comparer) where TNode : class, IBidiNode <TNode> where TComparer : struct, IComparer <TNode> { BidiNodeUtility <TNode> .LinkList Link; BidiNodeUtility <TNode> .Alloc(List, out Link); Sort(ref Link, Comparer); List.First = Link.First.Data; List.Last = Link.Last.Data; BidiNodeUtility <TNode> .Assign(ref Link); }