public StmtWordListCursor(StmtWordList InList)
 {
     mRltv       = AcRelativePosition.Begin;
     mNode       = null;
     mList       = InList;
     mStayAtFlag = false;
 }
 public BinaryTreeCursor(
     BinaryTree <K, V> InTree, BinaryTreeNode <K, V> InNode, AcRelativePosition InRltv)
 {
     mRltv       = InRltv;
     mBinaryTree = InTree;
     mNode       = InNode;
 }
 public StmtWordListCursor(
     StmtWordList InList, LinkedListNode <StmtWord> InNode, AcRelativePosition InRltv)
 {
     mList       = InList;
     mRltv       = InRltv;
     mNode       = InNode;
     mStayAtFlag = false;
 }
 public void PosBegin()
 {
     if (mBinaryTree == null)
     {
         throw new ApplicationException("tree of the cursor is not set");
     }
     mRltv = AcRelativePosition.Begin;
 }
Example #5
0
 /// <summary>
 /// Empty the word attributes of the cursor.
 /// </summary>
 public void EmptyWord( )
 {
     mWordValue         = null;
     mWordBx            = -1;
     mDelimBx           = -1;
     mDelim             = null;
     mRltv              = AcRelativePosition.None;
     mDelimIsWhitespace = false;
 }
Example #6
0
 public WordCursor(WordCursor InWord)
 {
     mWordValue         = InWord.mWordValue;
     mWordBx            = InWord.WordBx;
     mDelimBx           = InWord.DelimBx;
     mDelim             = InWord.mDelim;
     mDelimIsWhitespace = InWord.mDelimIsWhitespace;
     mRltv   = InWord.mRltv;
     mTraits = InWord.mTraits;
     mString = InWord.mString;
 }
 /// <summary>
 /// Advance Enumerator to the next element.
 /// </summary>
 /// <returns></returns>
 public AcEnumerator MoveNext( )
 {
     if (mRltv != AcRelativePosition.None)
     {
         bool rc = mIt.MoveNext( );
         if (rc == false)
         {
             mRltv = AcRelativePosition.None;
         }
         else
         {
             mRltv = AcRelativePosition.At;
         }
     }
     return(this);
 }
 public AcEnumerator Reset( )
 {
     mIt.Reset( );
     mRltv = AcRelativePosition.Begin;
     return(this);
 }
 /// <summary>
 /// Assign an IEnumerator positioned to the begin of the list.
 /// </summary>
 /// <param name="InIt"></param>
 /// <returns></returns>
 public AcEnumerator AssignResetEnumerator(IEnumerator InIt)
 {
     mIt   = InIt;
     mRltv = AcRelativePosition.Begin;
     return(this);
 }
 public BinaryTreeCursor(BinaryTree <K, V> InTree)
 {
     mRltv       = AcRelativePosition.Begin;
     mBinaryTree = InTree;
     mNode       = null;
 }