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 52 of file formulagroup.hxx.

Member Typedef Documentation

◆ ColArraysType

Definition at line 84 of file formulagroup.hxx.

◆ DoubleAllocType

Definition at line 54 of file formulagroup.hxx.

◆ NumArrayStoreType

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

Definition at line 57 of file formulagroup.hxx.

◆ NumArrayType

Definition at line 55 of file formulagroup.hxx.

◆ StrArrayStoreType

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

Definition at line 58 of file formulagroup.hxx.

◆ StrArrayType

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

Definition at line 56 of file formulagroup.hxx.

Constructor & Destructor Documentation

◆ FormulaGroupContext() [1/2]

sc::FormulaGroupContext::FormulaGroupContext ( )

Definition at line 128 of file formulagroup.cxx.

◆ FormulaGroupContext() [2/2]

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

◆ ~FormulaGroupContext()

sc::FormulaGroupContext::~FormulaGroupContext ( )

Definition at line 132 of file formulagroup.cxx.

Member Function Documentation

◆ discardCachedColArray()

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

Definition at line 100 of file formulagroup.cxx.

References maColArrays.

Referenced by ScColumn::FetchVectorRefArray().

◆ ensureNumArray()

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

Definition at line 117 of file formulagroup.cxx.

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

◆ ensureStrArray()

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

Definition at line 107 of file formulagroup.cxx.

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

◆ getCachedColArray()

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

keep track of longest array for each column.

Definition at line 63 of file formulagroup.cxx.

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

Referenced by ScColumn::FetchVectorRefArray().

◆ operator=()

const FormulaGroupContext & sc::FormulaGroupContext::operator= ( const FormulaGroupContext )
delete

◆ setCachedColArray()

FormulaGroupContext::ColArray * sc::FormulaGroupContext::setCachedColArray ( SCTAB  nTab,
SCCOL  nCol,
NumArrayType pNumArray,
StrArrayType pStrArray 
)

Definition at line 78 of file formulagroup.cxx.

References maColArrays.

Referenced by ScColumn::FetchVectorRefArray().

Member Data Documentation

◆ m_NumArrays

NumArrayStoreType sc::FormulaGroupContext::m_NumArrays

Definition at line 86 of file formulagroup.hxx.

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

◆ m_StrArrays

StrArrayStoreType sc::FormulaGroupContext::m_StrArrays

manage life cycle of numeric arrays.

Definition at line 87 of file formulagroup.hxx.

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

◆ maColArrays

ColArraysType sc::FormulaGroupContext::maColArrays

manage life cycle of string arrays.

Definition at line 89 of file formulagroup.hxx.

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


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