Пример #1
0
        public virtual int GetCount()
        {
            int count = 0;
            int size  = mLevels.Count;

            for (int i = 0; i < size; i++)
            {
                LocalSymbolList list = mLevels[i];
                count += list.GetCount();
            }
            return(count);
        }
Пример #2
0
        public virtual void Commit()
        {
            int count = 0;

            for (int i = mLevels.Count - 1; i >= 0; i--)
            {
                LocalSymbolList list = mLevels[i];
                count += list.GetCount();
            }
            if (mMaxCount < count)
            {
                mMaxCount = count;
                if (mMaxCountWriter != null)
                {
                    mMaxCountWriter.SetMaxCount(count);
                }
            }
        }