LibreOffice Module sc (master)  1
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 ReadSize (XclImpStream &rStrm)
 Reads the size field of the token array. More...
 
void ReadArray (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...
 

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

Constructor & Destructor Documentation

XclTokenArray::XclTokenArray ( bool  bVolatile = false)
explicit

Creates an empty token array.

Definition at line 723 of file xlformula.cxx.

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

bool XclTokenArray::Empty ( ) const
inline

Returns true, if the token array is empty.

Definition at line 386 of file xlformula.hxx.

References maTokVec.

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

const sal_uInt8* XclTokenArray::GetData ( ) const
inline

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

Definition at line 390 of file xlformula.hxx.

References maTokVec.

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

sal_uInt16 XclTokenArray::GetSize ( ) const
bool XclTokenArray::IsVolatile ( ) const
inline

Returns true, if the formula contains a volatile function.

Definition at line 392 of file xlformula.hxx.

References mbVolatile.

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

Compares this token array with the passed.

Definition at line 779 of file xlformula.cxx.

References maExtDataVec, maTokVec, and mbVolatile.

void XclTokenArray::Read ( XclImpStream rStrm)

Reads size field and the tokens.

Definition at line 754 of file xlformula.cxx.

References ReadArray(), and ReadSize().

Referenced by operator>>().

void XclTokenArray::ReadArray ( XclImpStream rStrm)

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

Definition at line 748 of file xlformula.cxx.

References GetSize(), maTokVec, and XclImpStream::Read().

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

void XclTokenArray::ReadSize ( XclImpStream rStrm)

Reads the size field of the token array.

Definition at line 741 of file xlformula.cxx.

References maTokVec, and XclImpStream::ReaduInt16().

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

void XclTokenArray::Write ( XclExpStream rStrm) const

Writes size field and the tokens.

Definition at line 773 of file xlformula.cxx.

References WriteArray(), and WriteSize().

Referenced by operator<<().

void XclTokenArray::WriteArray ( XclExpStream rStrm) const

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

Definition at line 765 of file xlformula.cxx.

References GetSize(), maExtDataVec, maTokVec, and XclExpStream::Write().

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

void XclTokenArray::WriteSize ( XclExpStream rStrm) const

Writes the size field of the token array.

Definition at line 760 of file xlformula.cxx.

References GetSize().

Referenced by Write().

Member Data Documentation

ScfUInt8Vec XclTokenArray::maExtDataVec
private

Byte vector containing token data.

Definition at line 413 of file xlformula.hxx.

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

ScfUInt8Vec XclTokenArray::maTokVec
private
bool XclTokenArray::mbVolatile
private

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

Definition at line 414 of file xlformula.hxx.

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


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