LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XclTokenArrayIterator Class Reference

Special token array iterator for the Excel filters. More...

#include <xlformula.hxx>

Collaboration diagram for XclTokenArrayIterator:
[legend]

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::FormulaTokenGet () const
 
const ::formula::FormulaTokenoperator-> () const
 
const ::formula::FormulaTokenoperator* () const
 
XclTokenArrayIteratoroperator++ ()
 

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ XclTokenArrayIterator() [1/3]

XclTokenArrayIterator::XclTokenArrayIterator ( )
explicit

Definition at line 821 of file xlformula.cxx.

◆ XclTokenArrayIterator() [2/3]

XclTokenArrayIterator::XclTokenArrayIterator ( const ScTokenArray rScTokArr,
bool  bSkipSpaces 
)
explicit

Definition at line 829 of file xlformula.cxx.

References Init().

◆ XclTokenArrayIterator() [3/3]

XclTokenArrayIterator::XclTokenArrayIterator ( const XclTokenArrayIterator rTokArrIt,
bool  bSkipSpaces 
)
explicit

Copy constructor that allows to change the skip-spaces mode.

Definition at line 834 of file xlformula.cxx.

References SkipSpaces().

Member Function Documentation

◆ Get()

const ::formula::FormulaToken * XclTokenArrayIterator::Get ( ) const
inline

Definition at line 450 of file xlformula.hxx.

References mppScToken.

Referenced by operator*(), operator->(), and XclExpFmlaCompImpl::PeekNextRawToken().

◆ Init()

void XclTokenArrayIterator::Init ( const ScTokenArray rScTokArr,
bool  bSkipSpaces 
)

◆ Is()

bool XclTokenArrayIterator::Is ( ) const
inline

◆ NextRawToken()

void XclTokenArrayIterator::NextRawToken ( )
private

Definition at line 860 of file xlformula.cxx.

References mppScToken, and mppScTokenEnd.

Referenced by operator++(), and SkipSpaces().

◆ operator!()

bool XclTokenArrayIterator::operator! ( ) const
inline

Definition at line 449 of file xlformula.hxx.

References Is().

◆ operator*()

const ::formula::FormulaToken & XclTokenArrayIterator::operator* ( ) const
inline

Definition at line 452 of file xlformula.hxx.

References Get().

◆ operator++()

XclTokenArrayIterator & XclTokenArrayIterator::operator++ ( void  )

Definition at line 853 of file xlformula.cxx.

References NextRawToken(), and SkipSpaces().

◆ operator->()

const ::formula::FormulaToken * XclTokenArrayIterator::operator-> ( ) const
inline

Definition at line 451 of file xlformula.hxx.

References Get().

◆ SkipSpaces()

void XclTokenArrayIterator::SkipSpaces ( )
private

Definition at line 867 of file xlformula.cxx.

References Is(), mbSkipSpaces, NextRawToken(), ocSpaces, and ocWhitespace.

Referenced by Init(), operator++(), and XclTokenArrayIterator().

Member Data Documentation

◆ mbSkipSpaces

bool XclTokenArrayIterator::mbSkipSpaces
private

Pointer to current token pointer of token array.

Definition at line 464 of file xlformula.hxx.

Referenced by Init(), and SkipSpaces().

◆ mppScToken

const ::formula::FormulaToken* const* XclTokenArrayIterator::mppScToken
private

Pointer behind last token pointer of token array.

Definition at line 463 of file xlformula.hxx.

Referenced by Get(), Init(), Is(), and NextRawToken().

◆ mppScTokenBeg

const ::formula::FormulaToken* const* XclTokenArrayIterator::mppScTokenBeg
private

Definition at line 461 of file xlformula.hxx.

Referenced by Init().

◆ mppScTokenEnd

const ::formula::FormulaToken* const* XclTokenArrayIterator::mppScTokenEnd
private

Pointer to first token pointer of token array.

Definition at line 462 of file xlformula.hxx.

Referenced by Init(), and NextRawToken().


The documentation for this class was generated from the following files: