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 102 of file dociter.hxx.

Constructor & Destructor Documentation

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

Definition at line 753 of file dociter.cxx.

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

Member Function Documentation

const ScAttrArray * ScDBQueryDataIterator::GetAttrArrayByCol ( ScDocument rDoc,
SCTAB  nTab,
SCCOL  nCol 
)
staticprivate
const sc::CellStoreType * ScDBQueryDataIterator::GetColumnCellStore ( ScDocument rDoc,
SCTAB  nTab,
SCCOL  nCol 
)
staticprivate
bool ScDBQueryDataIterator::GetFirst ( Value rValue)

Does NOT reset rValue if no value found!

Definition at line 772 of file dociter.cxx.

References mpData.

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

bool ScDBQueryDataIterator::GetNext ( Value rValue)

Does NOT reset rValue if no value found!

Definition at line 777 of file dociter.cxx.

References mpData.

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

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

Member Data Documentation

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

Definition at line 178 of file dociter.hxx.

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

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

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