LibreOffice Module sc (master) 1
|
Special token array iterator for the Excel filters. More...
#include <xlformula.hxx>
Public Member Functions | |
XclTokenArrayIterator () | |
XclTokenArrayIterator (const ScTokenArray &rScTokArr, bool bSkipSpaces) | |
XclTokenArrayIterator (const XclTokenArrayIterator &rTokArrIt, bool bSkipSpaces) | |
Copy constructor that allows to change the skip-spaces mode. More... | |
void | Init (const ScTokenArray &rScTokArr, bool bSkipSpaces) |
bool | Is () const |
bool | operator! () const |
const ::formula::FormulaToken * | Get () const |
const ::formula::FormulaToken * | operator-> () const |
const ::formula::FormulaToken & | operator* () const |
XclTokenArrayIterator & | operator++ () |
Private Member Functions | |
void | NextRawToken () |
void | SkipSpaces () |
Private Attributes | |
const ::formula::FormulaToken *const * | mppScTokenBeg |
const ::formula::FormulaToken *const * | mppScTokenEnd |
Pointer to first token pointer of token array. More... | |
const ::formula::FormulaToken *const * | mppScToken |
Pointer behind last token pointer of token array. More... | |
bool | mbSkipSpaces |
Pointer to current token pointer of token array. More... | |
Special token array iterator for the Excel filters.
Iterates over a Calc token array without modifying it (therefore the iterator can be used with constant token arrays).
Usage: Construct a new iterator object and pass a Calc token array, or use the Init() function to assign another Calc token array. As long as the Is() function returns true, the accessor functions can be used to get the current Calc token.
Definition at line 438 of file xlformula.hxx.
|
explicit |
Definition at line 821 of file xlformula.cxx.
|
explicit |
Definition at line 829 of file xlformula.cxx.
References Init().
|
explicit |
Copy constructor that allows to change the skip-spaces mode.
Definition at line 834 of file xlformula.cxx.
References SkipSpaces().
|
inline |
Definition at line 450 of file xlformula.hxx.
References mppScToken.
Referenced by operator*(), operator->(), and XclExpFmlaCompImpl::PeekNextRawToken().
void XclTokenArrayIterator::Init | ( | const ScTokenArray & | rScTokArr, |
bool | bSkipSpaces | ||
) |
Definition at line 843 of file xlformula.cxx.
References formula::FormulaTokenArray::GetArray(), formula::FormulaTokenArray::GetLen(), mbSkipSpaces, mppScToken, mppScTokenBeg, mppScTokenEnd, and SkipSpaces().
Referenced by XclTokenArrayIterator().
|
inline |
Definition at line 448 of file xlformula.hxx.
References mppScToken.
Referenced by XclTokenArrayHelper::GetMultipleOpRefs(), XclTokenArrayHelper::GetString(), XclTokenArrayHelper::GetStringList(), operator!(), and SkipSpaces().
|
private |
Definition at line 860 of file xlformula.cxx.
References mppScToken, and mppScTokenEnd.
Referenced by operator++(), and SkipSpaces().
|
inline |
Definition at line 449 of file xlformula.hxx.
References Is().
|
inline |
Definition at line 452 of file xlformula.hxx.
References Get().
XclTokenArrayIterator & XclTokenArrayIterator::operator++ | ( | void | ) |
Definition at line 853 of file xlformula.cxx.
References NextRawToken(), and SkipSpaces().
|
inline |
Definition at line 451 of file xlformula.hxx.
References Get().
|
private |
Definition at line 867 of file xlformula.cxx.
References Is(), mbSkipSpaces, NextRawToken(), ocSpaces, and ocWhitespace.
Referenced by Init(), operator++(), and XclTokenArrayIterator().
|
private |
Pointer to current token pointer of token array.
Definition at line 464 of file xlformula.hxx.
Referenced by Init(), and SkipSpaces().
|
private |
Pointer behind last token pointer of token array.
Definition at line 463 of file xlformula.hxx.
Referenced by Get(), Init(), Is(), and NextRawToken().
|
private |
Definition at line 461 of file xlformula.hxx.
Referenced by Init().
|
private |
Pointer to first token pointer of token array.
Definition at line 462 of file xlformula.hxx.
Referenced by Init(), and NextRawToken().