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

#include <dociter.hxx>

Classes

class  DataAccess
 
class  DataAccessInternal
 
class  DataAccessMatrix
 
struct  Value
 

Public Member Functions

 ScDBQueryDataIterator (ScDocument &rDocument, const ScInterpreterContext &rContext, std::unique_ptr< ScDBQueryParamBase > pParam)
 
bool GetFirst (Value &rValue)
 Does NOT reset rValue if no value found! More...
 
bool GetNext (Value &rValue)
 Does NOT reset rValue if no value found! More...
 

Static Private Member Functions

static const sc::CellStoreTypeGetColumnCellStore (ScDocument &rDoc, SCTAB nTab, SCCOL nCol)
 
static const ScAttrArrayGetAttrArrayByCol (ScDocument &rDoc, SCTAB nTab, SCCOL nCol)
 
static bool IsQueryValid (ScDocument &rDoc, const ScQueryParam &rParam, SCTAB nTab, SCROW nRow, const ScRefCellValue *pCell)
 

Private Attributes

::std::unique_ptr< ScDBQueryParamBasempParam
 
::std::unique_ptr< DataAccessmpData
 

Detailed Description

Definition at line 99 of file dociter.hxx.

Constructor & Destructor Documentation

◆ ScDBQueryDataIterator()

ScDBQueryDataIterator::ScDBQueryDataIterator ( ScDocument rDocument,
const ScInterpreterContext rContext,
std::unique_ptr< ScDBQueryParamBase pParam 
)

Definition at line 738 of file dociter.cxx.

References ScDBQueryParamBase::INTERNAL, ScDBQueryParamBase::MATRIX, mpData, mpParam, and p.

Member Function Documentation

◆ GetAttrArrayByCol()

const ScAttrArray * ScDBQueryDataIterator::GetAttrArrayByCol ( ScDocument rDoc,
SCTAB  nTab,
SCCOL  nCol 
)
staticprivate

◆ GetColumnCellStore()

const sc::CellStoreType * ScDBQueryDataIterator::GetColumnCellStore ( ScDocument rDoc,
SCTAB  nTab,
SCCOL  nCol 
)
staticprivate

◆ GetFirst()

bool ScDBQueryDataIterator::GetFirst ( Value rValue)

Does NOT reset rValue if no value found!

Definition at line 757 of file dociter.cxx.

References mpData.

Referenced by ScInterpreter::DBIterator(), ScInterpreter::GetDBStVarParams(), ScInterpreter::ScDBCount(), ScInterpreter::ScDBCount2(), and ScInterpreter::ScDBGet().

◆ GetNext()

bool ScDBQueryDataIterator::GetNext ( Value rValue)

Does NOT reset rValue if no value found!

Definition at line 762 of file dociter.cxx.

References mpData.

Referenced by ScInterpreter::DBIterator(), ScInterpreter::GetDBStVarParams(), ScInterpreter::ScDBCount(), ScInterpreter::ScDBCount2(), and ScInterpreter::ScDBGet().

◆ IsQueryValid()

bool ScDBQueryDataIterator::IsQueryValid ( ScDocument rDoc,
const ScQueryParam rParam,
SCTAB  nTab,
SCROW  nRow,
const ScRefCellValue pCell 
)
staticprivate

Member Data Documentation

◆ mpData

::std::unique_ptr<DataAccess> ScDBQueryDataIterator::mpData
private

Definition at line 175 of file dociter.hxx.

Referenced by GetFirst(), GetNext(), and ScDBQueryDataIterator().

◆ mpParam

::std::unique_ptr<ScDBQueryParamBase> ScDBQueryDataIterator::mpParam
private

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