LibreOffice Module sc (master)  1
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
sc::FormulaGroupContext Struct Reference

#include <formulagroup.hxx>

Classes

struct  ColArray
 
struct  ColKey
 

Public Types

typedef AlignedAllocator< double, 256 > DoubleAllocType
 
typedef std::vector< double, DoubleAllocTypeNumArrayType
 
typedef std::vector< rtl_uString * > StrArrayType
 
typedef std::vector< std::unique_ptr< NumArrayType > > NumArrayStoreType
 
typedef std::vector< std::unique_ptr< StrArrayType > > StrArrayStoreType
 
typedef std::unordered_map< ColKey, ColArray, ColKey::HashColArraysType
 

Public Member Functions

ColArraygetCachedColArray (SCTAB nTab, SCCOL nCol, size_t nSize)
 keep track of longest array for each column. More...
 
ColArraysetCachedColArray (SCTAB nTab, SCCOL nCol, NumArrayType *pNumArray, StrArrayType *pStrArray)
 
void discardCachedColArray (SCTAB nTab, SCCOL nCol)
 
void ensureStrArray (ColArray &rColArray, size_t nArrayLen)
 
void ensureNumArray (ColArray &rColArray, size_t nArrayLen)
 
 FormulaGroupContext ()
 
 FormulaGroupContext (const FormulaGroupContext &)=delete
 
const FormulaGroupContextoperator= (const FormulaGroupContext &)=delete
 
 ~FormulaGroupContext ()
 

Public Attributes

NumArrayStoreType m_NumArrays
 
StrArrayStoreType m_StrArrays
 manage life cycle of numeric arrays. More...
 
ColArraysType maColArrays
 manage life cycle of string arrays. More...
 

Detailed Description

Definition at line 53 of file formulagroup.hxx.

Member Typedef Documentation

Definition at line 85 of file formulagroup.hxx.

Definition at line 55 of file formulagroup.hxx.

typedef std::vector<std::unique_ptr<NumArrayType> > sc::FormulaGroupContext::NumArrayStoreType

Definition at line 58 of file formulagroup.hxx.

Definition at line 56 of file formulagroup.hxx.

typedef std::vector<std::unique_ptr<StrArrayType> > sc::FormulaGroupContext::StrArrayStoreType

Definition at line 59 of file formulagroup.hxx.

typedef std::vector<rtl_uString*> sc::FormulaGroupContext::StrArrayType

Definition at line 57 of file formulagroup.hxx.

Constructor & Destructor Documentation

sc::FormulaGroupContext::FormulaGroupContext ( )

Definition at line 137 of file formulagroup.cxx.

sc::FormulaGroupContext::FormulaGroupContext ( const FormulaGroupContext )
delete
sc::FormulaGroupContext::~FormulaGroupContext ( )

Definition at line 141 of file formulagroup.cxx.

Member Function Documentation

void sc::FormulaGroupContext::discardCachedColArray ( SCTAB  nTab,
SCCOL  nCol 
)

Definition at line 107 of file formulagroup.cxx.

References maColArrays.

Referenced by ScColumn::FetchVectorRefArray().

void sc::FormulaGroupContext::ensureNumArray ( ColArray rColArray,
size_t  nArrayLen 
)

Definition at line 124 of file formulagroup.cxx.

References m_NumArrays, and sc::FormulaGroupContext::ColArray::mpNumArray.

void sc::FormulaGroupContext::ensureStrArray ( ColArray rColArray,
size_t  nArrayLen 
)

Definition at line 114 of file formulagroup.cxx.

References m_StrArrays, and sc::FormulaGroupContext::ColArray::mpStrArray.

FormulaGroupContext::ColArray * sc::FormulaGroupContext::getCachedColArray ( SCTAB  nTab,
SCCOL  nCol,
size_t  nSize 
)

keep track of longest array for each column.

Definition at line 70 of file formulagroup.cxx.

References maColArrays, and sc::FormulaGroupContext::ColArray::mnSize.

Referenced by ScColumn::FetchVectorRefArray().

const FormulaGroupContext& sc::FormulaGroupContext::operator= ( const FormulaGroupContext )
delete
FormulaGroupContext::ColArray * sc::FormulaGroupContext::setCachedColArray ( SCTAB  nTab,
SCCOL  nCol,
NumArrayType pNumArray,
StrArrayType pStrArray 
)

Definition at line 85 of file formulagroup.cxx.

References maColArrays.

Referenced by ScColumn::FetchVectorRefArray().

Member Data Documentation

NumArrayStoreType sc::FormulaGroupContext::m_NumArrays

Definition at line 87 of file formulagroup.hxx.

Referenced by ensureNumArray(), and ScColumn::FetchVectorRefArray().

StrArrayStoreType sc::FormulaGroupContext::m_StrArrays

manage life cycle of numeric arrays.

Definition at line 88 of file formulagroup.hxx.

Referenced by ensureStrArray(), and ScColumn::FetchVectorRefArray().

ColArraysType sc::FormulaGroupContext::maColArrays

manage life cycle of string arrays.

Definition at line 90 of file formulagroup.hxx.

Referenced by discardCachedColArray(), getCachedColArray(), and setCachedColArray().


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