示例#1
0
            internal void Add(double Value)
            {
                if (m_Data.Count == m_Capacity)
                {
                    m_TotalValue -= m_Data.PopHead();
                }
                m_Data.PushTail(Value);

                m_TotalValue += Value;
            }
示例#2
0
            internal void Add(T Value)
            {
                if (m_Data.Count == m_Capacity)
                {
                    m_TotalValue.SubtractEquals(m_Data.PopHead());
                }
                m_Data.PushTail(Value);

                m_TotalValue.SubtractEquals(Value);
            }