示例#1
0
 private void CreateColumnHeaders(uint column)
 {
     _columnHeaders[column] = new ColumnObject(column)
     {
         Column = column
     };
     _columnHeaders[column].InsertHorizontalNode(Root.Left, Root);
 }
示例#2
0
        private void InsertDoublyLinkedNode(DataObject left, ColumnObject up, DataObject node)
        {
            node.InsertHorizontalNode(left.Left, left);
            node.InsertVerticalNode(up.Up, up);

            node.Header = up;
            node.Header.Size++;
        }
示例#3
0
        private ColumnObject GetHeuristicColumn()
        {
            var          maxSize = uint.MaxValue;
            ColumnObject Object  = null;

            foreach (ColumnObject column in EnumerateNodes(Root, o => o.Right))
            {
                if (column.Size < maxSize)
                {
                    maxSize = column.Size;
                    Object  = column;
                }
            }

            return(Object);
        }
示例#4
0
        private void InsertDoublyLinkedNode(DataObject left, ColumnObject up, DataObject node)
        {
            node.InsertHorizontalNode(left.Left, left);
            node.InsertVerticalNode(up.Up, up);

            node.Header = up;
            node.Header.Size++;
        }
示例#5
0
 private void CreateColumnHeaders(uint column)
 {
     _columnHeaders[column] = new ColumnObject(column) { Column = column };
     _columnHeaders[column].InsertHorizontalNode(Root.Left, Root);
 }