/// <summary>
        /// Initializes a new instance of the CodeElementWrapperIndexTable class.
        /// </summary>
        /// <param name="a">The CodeElementWrapperArray object to be indexed.</param>
        public CodeElementWrapperIndexTable(CodeElementWrapperArray a)
            : base(new CodeElementWrapperArrayIndexTable(a))
        {
            _codeElementArray = a;

            // Add all entries to the base.indexTable.
            for (int i = 0; i < a.Count; i++)
            {
                indexTable.Add(i);
            }
            indexTable.Sort(new SortCriteria(SortCriteria.SortType.ALPHA));
            Reset();
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the CodeElementWrapperArrayIndexTable
 /// class and copies another instance to it.
 /// </summary>
 /// <param name="copy">The CodeElementWrapperArrayIndexTable object to copy.</param>
 public CodeElementWrapperArrayIndexTable(CodeElementWrapperArrayIndexTable copy)
 {
     _list = new List <int>(copy._list);
     _codeElementWrapperArray = copy._codeElementWrapperArray;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the MyComparer class.
 /// </summary>
 /// <param name="a">A CodeElementWrapperArray object.</param>
 /// <param name="s">A SortCriteria object.</param>
 public MyComparer(CodeElementWrapperArray a, SortCriteria s)
 {
     _sortArray = a;
     _criteria  = s;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the CodeElementWrapperArrayIndexTable class.
 /// </summary>
 /// <param name="a">A CodeElementWrapperArray object.</param>
 public CodeElementWrapperArrayIndexTable(CodeElementWrapperArray a)
 {
     _list = new List <int>();
     _codeElementWrapperArray = a;
 }