Beispiel #1
0
            public Span(int start, int length, bool isColumn, double value)
            {
                Start     = start;
                Length    = length;
                IsColumn  = isColumn;
                Requested = value;

                Key = new SpanKey(Start, Length, IsColumn);
            }
Beispiel #2
0
        /// <summary>
        /// Helper method to register a span information for delayed processing. 
        /// </summary> 
        /// <param name="store">Reference to a hashtable object used as storage.</param>
        /// <param name="start">Span starting index.</param> 
        /// <param name="count">Span count.</param>
        /// <param name="u"><c>true</c> if this is a column span. <c>false</c> if this is a row span.</param>
        /// <param name="value">Value to store. If an entry already exists the biggest value is stored.</param>
        private static void RegisterSpan( 
            ref Hashtable store,
            int start, 
            int count, 
            bool u,
            double value) 
        {
            if (store == null)
            {
                store = new Hashtable(); 
            }
 
            SpanKey key = new SpanKey(start, count, u); 
            object o = store[key];
 
            if (    o == null
                ||  value > (double)o   )
            {
                store[key] = value; 
            }
        }