예제 #1
0
 /// <summary>
 /// 构造一个迭代器
 /// </summary>
 /// <param name="sortSet">有序集</param>
 /// <param name="forward">是否向前遍历</param>
 internal Enumerator(SortSet <TElement, TScore> sortSet, bool forward)
 {
     this.sortSet = sortSet;
     this.forward = forward;
     current      = forward ? sortSet.header : null;
 }
예제 #2
0
파일: SortSet.cs 프로젝트: U3DC/CatLib
 /// <summary>
 /// 构造一个迭代器
 /// </summary>
 /// <param name="sortSet">有序集</param>
 /// <param name="forward">是否向前遍历</param>
 internal Enumerator(SortSet <TElement, TScore> sortSet, bool forward)
 {
     this.sortSet = sortSet;
     this.forward = forward;
 }
예제 #3
0
 /// <summary>
 /// 构建一个过滤器链
 /// </summary>
 public FilterChain()
 {
     stack      = new Stack <int>();
     filterList = new SortSet <Action <TIn, Action <TIn> >, int>();
 }