LibreOffice Module sc (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
ScInterpreterContext Struct Reference

#include <interpretercontext.hxx>

Collaboration diagram for ScInterpreterContext:
[legend]

Public Member Functions

 ScInterpreterContext (const ScDocument &rDoc, SvNumberFormatter *pFormatter)
 
 ScInterpreterContext ()=delete
 
 ~ScInterpreterContext ()
 
SvNumberFormatterGetFormatTable () const
 
SvNumFormatType GetNumberFormatType (sal_uInt32 nFIndex) const
 

Public Attributes

const ScDocumentmpDoc
 
size_t mnTokenCachePos
 
std::vector< formula::FormulaToken * > maTokens
 
std::vector< DelayedSetNumberFormatmaDelayedSetNumberFormat
 
std::unique_ptr< ScLookupCacheMapmxScLookupCache
 
std::vector< sal_uInt8maConditions
 
ScInterpreterpInterpreter
 

Private Member Functions

void ResetTokens ()
 
void SetDocAndFormatter (const ScDocument &rDoc, SvNumberFormatter *pFormatter)
 
void Cleanup ()
 
void ClearLookupCache (const ScDocument *pDoc)
 
void initFormatTable ()
 

Private Attributes

SvNumberFormattermpFormatter
 
NFIndexAndFmtType maNFTypeCache
 

Friends

class ScInterpreterContextPool
 

Detailed Description

Definition at line 53 of file interpretercontext.hxx.

Constructor & Destructor Documentation

◆ ScInterpreterContext() [1/2]

ScInterpreterContext::ScInterpreterContext ( const ScDocument rDoc,
SvNumberFormatter pFormatter 
)

Definition at line 33 of file interpretercontext.cxx.

◆ ScInterpreterContext() [2/2]

ScInterpreterContext::ScInterpreterContext ( )
delete

◆ ~ScInterpreterContext()

ScInterpreterContext::~ScInterpreterContext ( )

Definition at line 42 of file interpretercontext.cxx.

References ResetTokens().

Member Function Documentation

◆ Cleanup()

void ScInterpreterContext::Cleanup ( )
private

Definition at line 69 of file interpretercontext.cxx.

References maConditions, maDelayedSetNumberFormat, and ResetTokens().

◆ ClearLookupCache()

void ScInterpreterContext::ClearLookupCache ( const ScDocument pDoc)
private

Definition at line 77 of file interpretercontext.cxx.

References mpDoc, and mxScLookupCache.

◆ GetFormatTable()

SvNumberFormatter * ScInterpreterContext::GetFormatTable ( ) const
inline

◆ GetNumberFormatType()

SvNumFormatType ScInterpreterContext::GetNumberFormatType ( sal_uInt32  nFIndex) const

◆ initFormatTable()

void ScInterpreterContext::initFormatTable ( )
private

Definition at line 64 of file interpretercontext.cxx.

References ScDocument::GetFormatTable(), mpDoc, and mpFormatter.

Referenced by GetFormatTable().

◆ ResetTokens()

void ScInterpreterContext::ResetTokens ( )
private

Definition at line 44 of file interpretercontext.cxx.

References maTokens, mnTokenCachePos, and p.

Referenced by Cleanup(), and ~ScInterpreterContext().

◆ SetDocAndFormatter()

void ScInterpreterContext::SetDocAndFormatter ( const ScDocument rDoc,
SvNumberFormatter pFormatter 
)
private

Definition at line 54 of file interpretercontext.cxx.

References mpDoc, mpFormatter, and mxScLookupCache.

Friends And Related Function Documentation

◆ ScInterpreterContextPool

friend class ScInterpreterContextPool
friend

Definition at line 81 of file interpretercontext.hxx.

Member Data Documentation

◆ maConditions

std::vector<sal_uInt8> ScInterpreterContext::maConditions

Definition at line 62 of file interpretercontext.hxx.

Referenced by Cleanup(), and ScInterpreter::IterateParametersIfs().

◆ maDelayedSetNumberFormat

std::vector<DelayedSetNumberFormat> ScInterpreterContext::maDelayedSetNumberFormat

◆ maNFTypeCache

NFIndexAndFmtType ScInterpreterContext::maNFTypeCache
mutableprivate

Definition at line 88 of file interpretercontext.hxx.

Referenced by GetNumberFormatType().

◆ maTokens

std::vector<formula::FormulaToken*> ScInterpreterContext::maTokens

Definition at line 57 of file interpretercontext.hxx.

Referenced by ScInterpreter::CreateFormulaDoubleToken(), and ResetTokens().

◆ mnTokenCachePos

size_t ScInterpreterContext::mnTokenCachePos

Definition at line 56 of file interpretercontext.hxx.

Referenced by ScInterpreter::CreateFormulaDoubleToken(), and ResetTokens().

◆ mpDoc

const ScDocument* ScInterpreterContext::mpDoc

◆ mpFormatter

SvNumberFormatter* ScInterpreterContext::mpFormatter
private

◆ mxScLookupCache

std::unique_ptr<ScLookupCacheMap> ScInterpreterContext::mxScLookupCache

◆ pInterpreter

ScInterpreter* ScInterpreterContext::pInterpreter

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