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
 
ScLookupCacheMapmScLookupCache
 
std::vector< sal_uInt32 > maConditions
 
ScInterpreterpInterpreter
 

Private Member Functions

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

Private Attributes

SvNumberFormattermpFormatter
 
NFIndexAndFmtType maNFTypeCache
 

Friends

class ScInterpreterContextPool
 

Detailed Description

Definition at line 54 of file interpretercontext.hxx.

Constructor & Destructor Documentation

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

Definition at line 66 of file interpretercontext.hxx.

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

Definition at line 31 of file interpretercontext.cxx.

References mScLookupCache, and ResetTokens().

Member Function Documentation

void ScInterpreterContext::Cleanup ( )
private

Definition at line 58 of file interpretercontext.cxx.

References maConditions, maDelayedSetNumberFormat, and ResetTokens().

void ScInterpreterContext::ClearLookupCache ( )
private

Definition at line 66 of file interpretercontext.cxx.

References mScLookupCache.

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

Definition at line 53 of file interpretercontext.cxx.

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

Referenced by GetFormatTable().

void ScInterpreterContext::ResetTokens ( )
private

Definition at line 37 of file interpretercontext.cxx.

References maTokens, mnTokenCachePos, and p.

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

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

Definition at line 47 of file interpretercontext.cxx.

References mpDoc, and mpFormatter.

Friends And Related Function Documentation

friend class ScInterpreterContextPool
friend

Definition at line 90 of file interpretercontext.hxx.

Member Data Documentation

std::vector<sal_uInt32> ScInterpreterContext::maConditions

Definition at line 63 of file interpretercontext.hxx.

Referenced by Cleanup().

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

Definition at line 97 of file interpretercontext.hxx.

Referenced by GetNumberFormatType().

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

Definition at line 58 of file interpretercontext.hxx.

Referenced by ResetTokens().

size_t ScInterpreterContext::mnTokenCachePos

Definition at line 57 of file interpretercontext.hxx.

Referenced by ResetTokens().

const ScDocument* ScInterpreterContext::mpDoc

Definition at line 56 of file interpretercontext.hxx.

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

SvNumberFormatter* ScInterpreterContext::mpFormatter
private
ScLookupCacheMap* ScInterpreterContext::mScLookupCache
ScInterpreter* ScInterpreterContext::pInterpreter

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