Example #1
0
        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="getter">for "prev" access</param>
        /// <param name="currentStates">existing state</param>
        /// <param name="optionalKeys">partition keys if any</param>
        public RegexPartitionStateImpl(RegexPartitionStateRandomAccessGetter getter, ICollection <RegexNFAStateEntry> currentStates, object optionalKeys)
        {
            if (getter != null)
            {
                _randomAccess = new RegexPartitionStateRandomAccessImpl(getter);
            }

            this._currentStates = currentStates.AsList();
            this._optionalKeys  = optionalKeys;
        }
Example #2
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="randomAccess">for handling "prev" functions, if any</param>
 /// <param name="optionalKeys">keys for "partition", if any</param>
 public RegexPartitionStateImpl(RegexPartitionStateRandomAccess randomAccess, object optionalKeys)
 {
     this._randomAccess = randomAccess;
     this._optionalKeys = optionalKeys;
 }