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

#include <token.hxx>

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

Public Member Functions

 FormulaSpaceToken (sal_uInt8 n, sal_Unicode c)
 
 FormulaSpaceToken (const FormulaSpaceToken &r)
 
virtual FormulaToken * Clone () const override
 
virtual sal_uInt8 GetByte () const override
 Dummy methods to avoid switches and casts where possible, the real token classes have to override the appropriate method[s]. More...
 
virtual sal_Unicode GetChar () const override
 
virtual bool operator== (const FormulaToken &rToken) const override
 
- 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::SharedString & GetString () 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 FormulaToken * GetFAPOrigToken () const
 
virtual FormulaError GetError () const
 
virtual void SetError (FormulaError)
 
virtual const ScSingleRefData * GetSingleRef () const
 
virtual ScSingleRefData * GetSingleRef ()
 
virtual const ScComplexRefData * GetDoubleRef () const
 
virtual ScComplexRefData * GetDoubleRef ()
 
virtual const ScSingleRefData * GetSingleRef2 () const
 
virtual ScSingleRefData * GetSingleRef2 ()
 
virtual const ScMatrix * GetMatrix () const
 
virtual ScMatrix * GetMatrix ()
 
virtual ScJumpMatrix * GetJumpMatrix () const
 
virtual const std::vector< ScComplexRefData > * GetRefList () const
 
virtual std::vector< ScComplexRefData > * GetRefList ()
 
virtual FormulaToken * Clone () const
 
virtual bool TextEqual (const formula::FormulaToken &rToken) const
 
virtual bool operator== (const FormulaToken &rToken) const
 
void NewOpCode (OpCode e, const PrivateAccess &)
 

Private Attributes

sal_uInt8 nByte
 
sal_Unicode cChar
 

Detailed Description

Definition at line 230 of file token.hxx.

Constructor & Destructor Documentation

◆ FormulaSpaceToken() [1/2]

formula::FormulaSpaceToken::FormulaSpaceToken ( sal_uInt8  n,
sal_Unicode  c 
)
inline

Definition at line 236 of file token.hxx.

References n.

◆ FormulaSpaceToken() [2/2]

formula::FormulaSpaceToken::FormulaSpaceToken ( const FormulaSpaceToken &  r)
inline

Definition at line 239 of file token.hxx.

Member Function Documentation

◆ Clone()

virtual FormulaToken * formula::FormulaSpaceToken::Clone ( ) const
inlineoverridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 243 of file token.hxx.

◆ GetByte()

sal_uInt8 formula::FormulaSpaceToken::GetByte ( ) const
overridevirtual

Dummy methods to avoid switches and casts where possible, the real token classes have to override the appropriate method[s].

The only methods valid anytime if not overridden are:

  • GetByte() since this represents the count of parameters to a function which of course is 0 on non-functions. FormulaByteToken and ScExternal do override it.
  • GetInForceArray() since also this is only used for operators and functions and is ParamClass::Unknown for other tokens.

Any other non-overridden method pops up an assertion.

Reimplemented from formula::FormulaToken.

Definition at line 356 of file token.cxx.

References nByte.

◆ GetChar()

sal_Unicode formula::FormulaSpaceToken::GetChar ( ) const
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 357 of file token.cxx.

References cChar.

◆ operator==()

bool formula::FormulaSpaceToken::operator== ( const FormulaToken &  rToken) const
overridevirtual

Member Data Documentation

◆ cChar

sal_Unicode formula::FormulaSpaceToken::cChar
private

Definition at line 234 of file token.hxx.

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

◆ nByte

sal_uInt8 formula::FormulaSpaceToken::nByte
private

Definition at line 233 of file token.hxx.

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


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