Esempio n. 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;
 }
Esempio n. 2
0
 /// <summary>
 /// 构建一个过滤器链
 /// </summary>
 public FilterChain()
 {
     stack      = new Stack <int>();
     filterList = new SortSet <Action <TIn, Action <TIn> >, int>();
 }