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 439 of file xlformula.hxx.

Constructor & Destructor Documentation

XclTokenArrayIterator::XclTokenArrayIterator ( )
explicit

Definition at line 805 of file xlformula.cxx.

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

Definition at line 813 of file xlformula.cxx.

References Init().

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

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

Definition at line 818 of file xlformula.cxx.

References SkipSpaces().

Member Function Documentation

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

Definition at line 451 of file xlformula.hxx.

References mppScToken.

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

void XclTokenArrayIterator::Init ( const ScTokenArray rScTokArr,
bool  bSkipSpaces 
)
bool XclTokenArrayIterator::Is ( ) const
inline
void XclTokenArrayIterator::NextRawToken ( )
private

Definition at line 844 of file xlformula.cxx.

References mppScToken, and mppScTokenEnd.

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

bool XclTokenArrayIterator::operator! ( ) const
inline

Definition at line 450 of file xlformula.hxx.

References Is().

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

Definition at line 453 of file xlformula.hxx.

References Get().

XclTokenArrayIterator & XclTokenArrayIterator::operator++ ( void  )

Definition at line 837 of file xlformula.cxx.

References NextRawToken(), and SkipSpaces().

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

Definition at line 452 of file xlformula.hxx.

References Get().

void XclTokenArrayIterator::SkipSpaces ( )
private

Definition at line 851 of file xlformula.cxx.

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

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

Member Data Documentation

bool XclTokenArrayIterator::mbSkipSpaces
private

Pointer to current token pointer of token array.

Definition at line 465 of file xlformula.hxx.

Referenced by Init(), and SkipSpaces().

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

Pointer behind last token pointer of token array.

Definition at line 464 of file xlformula.hxx.

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

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

Definition at line 462 of file xlformula.hxx.

Referenced by Init().

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

Pointer to first token pointer of token array.

Definition at line 463 of file xlformula.hxx.

Referenced by Init(), and NextRawToken().


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