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:

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_uInt32 > maConditions

Private Member Functions

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

Private Attributes

NFIndexAndFmtType maNFTypeCache


class ScInterpreterContextPool

Detailed Description

Definition at line 53 of file interpretercontext.hxx.

Constructor & Destructor Documentation

ScInterpreterContext::ScInterpreterContext ( const ScDocument rDoc,
SvNumberFormatter pFormatter 

Definition at line 32 of file interpretercontext.cxx.

ScInterpreterContext::ScInterpreterContext ( )
ScInterpreterContext::~ScInterpreterContext ( )

Definition at line 41 of file interpretercontext.cxx.

References mxScLookupCache, and ResetTokens().

Member Function Documentation

void ScInterpreterContext::Cleanup ( )

Definition at line 68 of file interpretercontext.cxx.

References maConditions, maDelayedSetNumberFormat, and ResetTokens().

void ScInterpreterContext::ClearLookupCache ( )

Definition at line 76 of file interpretercontext.cxx.

References mxScLookupCache.

SvNumberFormatter* ScInterpreterContext::GetFormatTable ( ) const
SvNumFormatType ScInterpreterContext::GetNumberFormatType ( sal_uInt32  nFIndex) const
void ScInterpreterContext::initFormatTable ( )

Definition at line 63 of file interpretercontext.cxx.

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

Referenced by GetFormatTable().

void ScInterpreterContext::ResetTokens ( )

Definition at line 47 of file interpretercontext.cxx.

References maTokens, mnTokenCachePos, and p.

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

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

Definition at line 57 of file interpretercontext.cxx.

References mpDoc, and mpFormatter.

Friends And Related Function Documentation

friend class ScInterpreterContextPool

Definition at line 81 of file interpretercontext.hxx.

Member Data Documentation

std::vector<sal_uInt32> ScInterpreterContext::maConditions

Definition at line 62 of file interpretercontext.hxx.

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

std::vector<DelayedSetNumberFormat> ScInterpreterContext::maDelayedSetNumberFormat
NFIndexAndFmtType ScInterpreterContext::maNFTypeCache

Definition at line 88 of file interpretercontext.hxx.

Referenced by GetNumberFormatType().

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

Definition at line 57 of file interpretercontext.hxx.

Referenced by ResetTokens().

size_t ScInterpreterContext::mnTokenCachePos

Definition at line 56 of file interpretercontext.hxx.

Referenced by ResetTokens().

const ScDocument* ScInterpreterContext::mpDoc

Definition at line 55 of file interpretercontext.hxx.

Referenced by GetNumberFormatType(), initFormatTable(), and SetDocAndFormatter().

SvNumberFormatter* ScInterpreterContext::mpFormatter
std::unique_ptr<ScLookupCacheMap> ScInterpreterContext::mxScLookupCache
ScInterpreter* ScInterpreterContext::pInterpreter

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