LibreOffice Module sc (master)  1
Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
ScInterpreterContextPool Class Reference

#include <interpretercontext.hxx>

Collaboration diagram for ScInterpreterContextPool:
[legend]

Static Public Member Functions

static void ClearLookupCaches ()
 

Private Member Functions

 ScInterpreterContextPool (bool bThreaded)
 
 ~ScInterpreterContextPool ()
 
void Init (size_t nNumThreads, const ScDocument &rDoc, SvNumberFormatter *pFormatter)
 
ScInterpreterContextGetInterpreterContextForThreadIdx (size_t nThreadIdx) const
 
void Init (const ScDocument &rDoc, SvNumberFormatter *pFormatter)
 
ScInterpreterContextGetInterpreterContext () const
 
void ReturnToPool ()
 

Private Attributes

std::vector< std::unique_ptr< ScInterpreterContext > > maPool
 
size_t mnNextFree
 
bool mbThreaded
 

Static Private Attributes

static ScInterpreterContextPool aThreadedInterpreterPool
 
static ScInterpreterContextPool aNonThreadedInterpreterPool
 

Friends

class ScThreadedInterpreterContextGetterGuard
 
class ScInterpreterContextGetterGuard
 

Detailed Description

Definition at line 94 of file interpretercontext.hxx.

Constructor & Destructor Documentation

ScInterpreterContextPool::ScInterpreterContextPool ( bool  bThreaded)
inlineprivate

Definition at line 103 of file interpretercontext.hxx.

ScInterpreterContextPool::~ScInterpreterContextPool ( )
inlineprivate

Definition at line 109 of file interpretercontext.hxx.

Member Function Documentation

void ScInterpreterContextPool::ClearLookupCaches ( )
static
ScInterpreterContext * ScInterpreterContextPool::GetInterpreterContext ( ) const
private
ScInterpreterContext * ScInterpreterContextPool::GetInterpreterContextForThreadIdx ( size_t  nThreadIdx) const
private
void ScInterpreterContextPool::Init ( size_t  nNumThreads,
const ScDocument rDoc,
SvNumberFormatter pFormatter 
)
private
void ScInterpreterContextPool::Init ( const ScDocument rDoc,
SvNumberFormatter pFormatter 
)
private

Definition at line 122 of file interpretercontext.cxx.

References assert(), maPool, mbThreaded, and mnNextFree.

void ScInterpreterContextPool::ReturnToPool ( )
private

Friends And Related Function Documentation

friend class ScInterpreterContextGetterGuard
friend

Definition at line 97 of file interpretercontext.hxx.

Definition at line 96 of file interpretercontext.hxx.

Member Data Documentation

ScInterpreterContextPool ScInterpreterContextPool::aNonThreadedInterpreterPool
staticprivate

Definition at line 112 of file interpretercontext.hxx.

Referenced by ClearLookupCaches().

ScInterpreterContextPool ScInterpreterContextPool::aThreadedInterpreterPool
staticprivate

Definition at line 111 of file interpretercontext.hxx.

Referenced by ClearLookupCaches().

std::vector<std::unique_ptr<ScInterpreterContext> > ScInterpreterContextPool::maPool
private
bool ScInterpreterContextPool::mbThreaded
private
size_t ScInterpreterContextPool::mnNextFree
private

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