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

Binary representation of an Excel token array. More...

#include <xlformula.hxx>

Public Member Functions

 XclTokenArray (bool bVolatile=false)
 Creates an empty token array. More...
 
 XclTokenArray (ScfUInt8Vec &rTokVec, ScfUInt8Vec &rExtDataVec, bool bVolatile=false)
 Creates a token array, swaps passed token vectors into own data. More...
 
bool Empty () const
 Returns true, if the token array is empty. More...
 
sal_uInt16 GetSize () const
 Returns the size of the token array in bytes. More...
 
const sal_uInt8GetData () const
 Returns read-only access to the byte vector storing token data. More...
 
bool IsVolatile () const
 Returns true, if the formula contains a volatile function. More...
 
void ReadArray (sal_uInt16 nSize, XclImpStream &rStrm)
 Reads the tokens of the token array (without size field). More...
 
void Read (XclImpStream &rStrm)
 Reads size field and the tokens. More...
 
void WriteSize (XclExpStream &rStrm) const
 Writes the size field of the token array. More...
 
void WriteArray (XclExpStream &rStrm) const
 Writes the tokens of the token array (without size field). More...
 
void Write (XclExpStream &rStrm) const
 Writes size field and the tokens. More...
 
bool operator== (const XclTokenArray &rTokArr) const
 Compares this token array with the passed. More...
 

Static Public Member Functions

static sal_uInt16 ReadSize (XclImpStream &rStrm)
 Reads the size field of the token array. More...
 

Private Attributes

ScfUInt8Vec maTokVec
 
ScfUInt8Vec maExtDataVec
 Byte vector containing token data. More...
 
bool mbVolatile
 Byte vector containing extended data (arrays, stacked NLRs). More...
 

Detailed Description

Binary representation of an Excel token array.

Definition at line 376 of file xlformula.hxx.

Constructor & Destructor Documentation

◆ XclTokenArray() [1/2]

XclTokenArray::XclTokenArray ( bool  bVolatile = false)
explicit

Creates an empty token array.

Definition at line 723 of file xlformula.cxx.

◆ XclTokenArray() [2/2]

XclTokenArray::XclTokenArray ( ScfUInt8Vec rTokVec,
ScfUInt8Vec rExtDataVec,
bool  bVolatile = false 
)
explicit

Creates a token array, swaps passed token vectors into own data.

Definition at line 728 of file xlformula.cxx.

References maExtDataVec, and maTokVec.

Member Function Documentation

◆ Empty()

bool XclTokenArray::Empty ( ) const
inline

Returns true, if the token array is empty.

Definition at line 385 of file xlformula.hxx.

References maTokVec.

Referenced by XclImpFmlaCompImpl::CreateFormula(), and XclImpFmlaCompImpl::CreateRangeList().

◆ GetData()

const sal_uInt8 * XclTokenArray::GetData ( ) const
inline

Returns read-only access to the byte vector storing token data.

Definition at line 389 of file xlformula.hxx.

References maTokVec.

Referenced by XclImpFmlaCompImpl::CreateFormula(), and XclImpFmlaCompImpl::CreateRangeList().

◆ GetSize()

sal_uInt16 XclTokenArray::GetSize ( ) const

◆ IsVolatile()

bool XclTokenArray::IsVolatile ( ) const
inline

Returns true, if the formula contains a volatile function.

Definition at line 391 of file xlformula.hxx.

References mbVolatile.

◆ operator==()

bool XclTokenArray::operator== ( const XclTokenArray rTokArr) const

Compares this token array with the passed.

Definition at line 795 of file xlformula.cxx.

References maExtDataVec, maTokVec, and mbVolatile.

◆ Read()

void XclTokenArray::Read ( XclImpStream rStrm)

Reads size field and the tokens.

Definition at line 771 of file xlformula.cxx.

References ReadArray(), ReadSize(), and rStrm.

Referenced by operator>>().

◆ ReadArray()

void XclTokenArray::ReadArray ( sal_uInt16  nSize,
XclImpStream rStrm 
)

Reads the tokens of the token array (without size field).

Definition at line 746 of file xlformula.cxx.

References maTokVec, rStrm, and o3tl::sanitizing_min().

Referenced by Read(), and XclImpControlHelper::ReadRangeList().

◆ ReadSize()

sal_uInt16 XclTokenArray::ReadSize ( XclImpStream rStrm)
static

Reads the size field of the token array.

Definition at line 741 of file xlformula.cxx.

References rStrm.

Referenced by Read(), and XclImpControlHelper::ReadRangeList().

◆ Write()

void XclTokenArray::Write ( XclExpStream rStrm) const

Writes size field and the tokens.

Definition at line 789 of file xlformula.cxx.

References rStrm, WriteArray(), and WriteSize().

Referenced by operator<<().

◆ WriteArray()

void XclTokenArray::WriteArray ( XclExpStream rStrm) const

Writes the tokens of the token array (without size field).

Definition at line 781 of file xlformula.cxx.

References GetSize(), maExtDataVec, maTokVec, and rStrm.

Referenced by Write(), and XclExpControlHelper::WriteFormula().

◆ WriteSize()

void XclTokenArray::WriteSize ( XclExpStream rStrm) const

Writes the size field of the token array.

Definition at line 776 of file xlformula.cxx.

References GetSize(), and rStrm.

Referenced by Write().

Member Data Documentation

◆ maExtDataVec

ScfUInt8Vec XclTokenArray::maExtDataVec
private

Byte vector containing token data.

Definition at line 412 of file xlformula.hxx.

Referenced by operator==(), WriteArray(), and XclTokenArray().

◆ maTokVec

ScfUInt8Vec XclTokenArray::maTokVec
private

Definition at line 411 of file xlformula.hxx.

Referenced by Empty(), GetData(), GetSize(), operator==(), ReadArray(), WriteArray(), and XclTokenArray().

◆ mbVolatile

bool XclTokenArray::mbVolatile
private

Byte vector containing extended data (arrays, stacked NLRs).

Definition at line 413 of file xlformula.hxx.

Referenced by IsVolatile(), and operator==().


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