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

#include <token.hxx>

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

Public Member Functions

 FormulaTypedDoubleToken (double f, sal_Int16 nType)
 
 FormulaTypedDoubleToken (const FormulaTypedDoubleToken &r)
 
virtual FormulaToken * Clone () const override
 
virtual sal_Int16 GetDoubleType () const override
 always returns 0 for "not typed" More...
 
virtual void SetDoubleType (sal_Int16 nType) override
 
virtual bool operator== (const FormulaToken &rToken) const override
 
- Public Member Functions inherited from formula::FormulaDoubleToken
 FormulaDoubleToken (double f)
 
 FormulaDoubleToken (const FormulaDoubleToken &r)
 
virtual FormulaToken * Clone () const override
 
virtual double GetDouble () const override
 
virtual double & GetDoubleAsReference () override
 
virtual sal_Int16 GetDoubleType () const override
 always returns 0 for "not typed" More...
 
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_Int16 mnType
 Can hold, for example, a value of SvNumFormatType, or by contract any other classification. More...
 

Detailed Description

Definition at line 316 of file token.hxx.

Constructor & Destructor Documentation

◆ FormulaTypedDoubleToken() [1/2]

formula::FormulaTypedDoubleToken::FormulaTypedDoubleToken ( double  f,
sal_Int16  nType 
)
inline

Definition at line 324 of file token.hxx.

References mnType, and nType.

◆ FormulaTypedDoubleToken() [2/2]

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

Definition at line 326 of file token.hxx.

References mnType.

Member Function Documentation

◆ Clone()

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

Reimplemented from formula::FormulaDoubleToken.

Definition at line 329 of file token.hxx.

◆ GetDoubleType()

sal_Int16 formula::FormulaTypedDoubleToken::GetDoubleType ( ) const
overridevirtual

always returns 0 for "not typed"

Reimplemented from formula::FormulaDoubleToken.

Definition at line 1919 of file token.cxx.

References mnType.

◆ operator==()

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

◆ SetDoubleType()

void formula::FormulaTypedDoubleToken::SetDoubleType ( sal_Int16  nType)
overridevirtual

Reimplemented from formula::FormulaToken.

Definition at line 1924 of file token.cxx.

References mnType, and nType.

Member Data Documentation

◆ mnType

sal_Int16 formula::FormulaTypedDoubleToken::mnType
private

Can hold, for example, a value of SvNumFormatType, or by contract any other classification.

Definition at line 319 of file token.hxx.

Referenced by GetDoubleType(), operator==(), and SetDoubleType().


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