LibreOffice Module formula (master) 1
Public Member Functions | Private Attributes | List of all members
formula::DoubleVectorRefToken Class Referencefinal

This token represents a range reference in a vectorized formula calculation context. More...

#include <vectortoken.hxx>

Inheritance diagram for formula::DoubleVectorRefToken:
[legend]
Collaboration diagram for formula::DoubleVectorRefToken:
[legend]

Public Member Functions

 DoubleVectorRefToken (std::vector< VectorRefArray > &&rArrays, size_t nArrayLength, size_t nRefRowSize, bool bStartFixed, bool bEndFixed)
 whether or not the end row position is absolute. More...
 
virtual FormulaTokenClone () const override
 
const std::vector< VectorRefArray > & GetArrays () const
 
size_t GetArrayLength () const
 
size_t GetRefRowSize () const
 
bool IsStartFixed () const
 
bool IsEndFixed () const
 
- Public Member Functions inherited from formula::FormulaToken
 FormulaToken (StackVar eTypeP, OpCode e=ocPush)
 
 FormulaToken (const FormulaToken &r)
 
virtual ~FormulaToken ()
 
void Delete ()
 
void DeleteIfZeroRef ()
 
StackVar GetType () const
 
bool IsFunction () const
 
bool IsExternalRef () const
 
bool IsRef () const
 
sal_uInt8 GetParamCount () const
 
void IncRef () const
 
void DecRef () const
 
oslInterlockedCount GetRef () const
 
OpCode GetOpCode () const
 
bool IsInForceArray () const
 
virtual sal_uInt8 GetByte () const
 Dummy methods to avoid switches and casts where possible, the real token classes have to override the appropriate method[s]. More...
 
virtual void SetByte (sal_uInt8 n)
 
virtual ParamClass GetInForceArray () const
 
virtual void SetInForceArray (ParamClass c)
 
virtual double GetDouble () const
 
virtual double & GetDoubleAsReference ()
 
virtual sal_Int16 GetDoubleType () const
 
virtual void SetDoubleType (sal_Int16 nType)
 
virtual const svl::SharedStringGetString () const
 
virtual void SetString (const svl::SharedString &rStr)
 
virtual sal_uInt16 GetIndex () const
 
virtual void SetIndex (sal_uInt16 n)
 
virtual sal_Int16 GetSheet () const
 
virtual void SetSheet (sal_Int16 n)
 
virtual sal_Unicode GetChar () const
 
virtual short * GetJump () const
 
virtual const OUString & GetExternal () const
 
virtual FormulaTokenGetFAPOrigToken () const
 
virtual FormulaError GetError () const
 
virtual void SetError (FormulaError)
 
virtual const ScSingleRefDataGetSingleRef () const
 
virtual ScSingleRefDataGetSingleRef ()
 
virtual const ScComplexRefDataGetDoubleRef () const
 
virtual ScComplexRefDataGetDoubleRef ()
 
virtual const ScSingleRefDataGetSingleRef2 () const
 
virtual ScSingleRefDataGetSingleRef2 ()
 
virtual const ScMatrixGetMatrix () const
 
virtual ScMatrixGetMatrix ()
 
virtual ScJumpMatrixGetJumpMatrix () const
 
virtual const std::vector< ScComplexRefData > * GetRefList () const
 
virtual std::vector< ScComplexRefData > * GetRefList ()
 
virtual FormulaTokenClone () const
 
virtual bool TextEqual (const formula::FormulaToken &rToken) const
 
virtual bool operator== (const FormulaToken &rToken) const
 
void NewOpCode (OpCode e, const PrivateAccess &)
 

Private Attributes

std::vector< VectorRefArraymaArrays
 
size_t mnArrayLength
 
size_t mnRefRowSize
 length of all arrays which does not include trailing empty region. More...
 
bool mbStartFixed:1
 original reference row size. More...
 
bool mbEndFixed:1
 whether or not the start row position is absolute. More...
 

Detailed Description

This token represents a range reference in a vectorized formula calculation context.

Definition at line 80 of file vectortoken.hxx.

Constructor & Destructor Documentation

◆ DoubleVectorRefToken()

formula::DoubleVectorRefToken::DoubleVectorRefToken ( std::vector< VectorRefArray > &&  rArrays,
size_t  nArrayLength,
size_t  nRefRowSize,
bool  bStartFixed,
bool  bEndFixed 
)

whether or not the end row position is absolute.

Definition at line 66 of file vectortoken.cxx.

References SAL_INFO.

Referenced by Clone().

Member Function Documentation

◆ Clone()

FormulaToken * formula::DoubleVectorRefToken::Clone ( ) const
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 76 of file vectortoken.cxx.

References DoubleVectorRefToken(), maArrays, mbEndFixed, mbStartFixed, mnArrayLength, and mnRefRowSize.

◆ GetArrayLength()

size_t formula::DoubleVectorRefToken::GetArrayLength ( ) const

Definition at line 87 of file vectortoken.cxx.

References mnArrayLength.

◆ GetArrays()

const std::vector< VectorRefArray > & formula::DoubleVectorRefToken::GetArrays ( ) const

Definition at line 82 of file vectortoken.cxx.

References maArrays.

◆ GetRefRowSize()

size_t formula::DoubleVectorRefToken::GetRefRowSize ( ) const

Definition at line 92 of file vectortoken.cxx.

References mnRefRowSize.

◆ IsEndFixed()

bool formula::DoubleVectorRefToken::IsEndFixed ( ) const

Definition at line 102 of file vectortoken.cxx.

References mbEndFixed.

◆ IsStartFixed()

bool formula::DoubleVectorRefToken::IsStartFixed ( ) const

Definition at line 97 of file vectortoken.cxx.

References mbStartFixed.

Member Data Documentation

◆ maArrays

std::vector<VectorRefArray> formula::DoubleVectorRefToken::maArrays
private

Definition at line 82 of file vectortoken.hxx.

Referenced by Clone(), and GetArrays().

◆ mbEndFixed

bool formula::DoubleVectorRefToken::mbEndFixed
private

whether or not the start row position is absolute.

Definition at line 90 of file vectortoken.hxx.

Referenced by Clone(), and IsEndFixed().

◆ mbStartFixed

bool formula::DoubleVectorRefToken::mbStartFixed
private

original reference row size.

The row size may change as it goes down the array if either the start or end position is fixed.

Definition at line 89 of file vectortoken.hxx.

Referenced by Clone(), and IsStartFixed().

◆ mnArrayLength

size_t formula::DoubleVectorRefToken::mnArrayLength
private

Definition at line 84 of file vectortoken.hxx.

Referenced by Clone(), and GetArrayLength().

◆ mnRefRowSize

size_t formula::DoubleVectorRefToken::mnRefRowSize
private

length of all arrays which does not include trailing empty region.

Definition at line 85 of file vectortoken.hxx.

Referenced by Clone(), and GetRefRowSize().


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