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

Classes

struct  Cell
 
struct  Row
 

Public Types

typedef std::vector< RowRowsType
 

Public Member Functions

 ScSortInfoArray (const ScSortInfoArray &)=delete
 
const ScSortInfoArrayoperator= (const ScSortInfoArray &)=delete
 
 ScSortInfoArray (sal_uInt16 nSorts, SCCOLROW nInd1, SCCOLROW nInd2)
 
void SetKeepQuery (bool b)
 
bool IsKeepQuery () const
 
void SetUpdateRefs (bool b)
 
bool IsUpdateRefs () const
 
std::unique_ptr< ScSortInfo[]> const & GetFirstArray () const
 Call this only during normal sorting, not from reordering. More...
 
ScSortInfo & Get (sal_uInt16 nSort, SCCOLROW nInd)
 Call this only during normal sorting, not from reordering. More...
 
void Swap (SCCOLROW nInd1, SCCOLROW nInd2)
 Call this only during normal sorting, not from reordering. More...
 
void SetOrderIndices (const std::vector< SCCOLROW > &rIndices)
 
void ReorderByRow (const std::vector< SCCOLROW > &rIndices)
 
sal_uInt16 GetUsedSorts () const
 
SCCOLROW GetStart () const
 
SCCOLROW GetLast () const
 
const std::vector< SCCOLROW > & GetOrderIndices () const
 
RowsTypeInitDataRows (size_t nRowSize, size_t nColSize)
 
RowsTypeGetDataRows ()
 

Private Attributes

std::unique_ptr< RowsTypempRows
 
std::vector< std::unique_ptr< ScSortInfo[]> > mvppInfo
 row-wise data table for sort by row operation. More...
 
SCCOLROW nStart
 
SCCOLROW mnLastIndex
 
std::vector< SCCOLROWmaOrderIndices
 index of last non-empty cell position. More...
 
bool mbKeepQuery
 
bool mbUpdateRefs
 

Detailed Description

Definition at line 232 of file table3.cxx.

Member Typedef Documentation

typedef std::vector<Row> ScSortInfoArray::RowsType

Definition at line 257 of file table3.cxx.

Constructor & Destructor Documentation

ScSortInfoArray::ScSortInfoArray ( const ScSortInfoArray )
delete
ScSortInfoArray::ScSortInfoArray ( sal_uInt16  nSorts,
SCCOLROW  nInd1,
SCCOLROW  nInd2 
)
inline

Definition at line 274 of file table3.cxx.

References i, and nCount.

Member Function Documentation

ScSortInfo& ScSortInfoArray::Get ( sal_uInt16  nSort,
SCCOLROW  nInd 
)
inline

Call this only during normal sorting, not from reordering.

Definition at line 313 of file table3.cxx.

References nStart.

Referenced by ScTable::Compare().

RowsType* ScSortInfoArray::GetDataRows ( )
inline

Definition at line 390 of file table3.cxx.

std::unique_ptr<ScSortInfo[]> const& ScSortInfoArray::GetFirstArray ( ) const
inline

Call this only during normal sorting, not from reordering.

Definition at line 305 of file table3.cxx.

SCCOLROW ScSortInfoArray::GetLast ( ) const
inline
const std::vector<SCCOLROW>& ScSortInfoArray::GetOrderIndices ( ) const
inline

Definition at line 381 of file table3.cxx.

References maOrderIndices.

Referenced by ScTable::SortReorderByColumn(), and ScTable::SortReorderByRowRefUpdate().

SCCOLROW ScSortInfoArray::GetStart ( ) const
inline
sal_uInt16 ScSortInfoArray::GetUsedSorts ( ) const
inline

Definition at line 376 of file table3.cxx.

RowsType& ScSortInfoArray::InitDataRows ( size_t  nRowSize,
size_t  nColSize 
)
inline

Definition at line 383 of file table3.cxx.

References mpRows.

bool ScSortInfoArray::IsKeepQuery ( ) const
inline

Definition at line 296 of file table3.cxx.

References mbKeepQuery.

Referenced by ScTable::SortReorderByRow(), and ScTable::SortReorderByRowRefUpdate().

bool ScSortInfoArray::IsUpdateRefs ( ) const
inline
const ScSortInfoArray& ScSortInfoArray::operator= ( const ScSortInfoArray )
delete
void ScSortInfoArray::ReorderByRow ( const std::vector< SCCOLROW > &  rIndices)
inline
Parameters
rIndicesindices are actual row positions on the sheet, not an offset from the top row.

Definition at line 352 of file table3.cxx.

References mpRows, nPos, and nStart.

void ScSortInfoArray::SetKeepQuery ( bool  b)
inline

Definition at line 294 of file table3.cxx.

void ScSortInfoArray::SetOrderIndices ( const std::vector< SCCOLROW > &  rIndices)
inline

Definition at line 343 of file table3.cxx.

void ScSortInfoArray::SetUpdateRefs ( bool  b)
inline

Definition at line 298 of file table3.cxx.

void ScSortInfoArray::Swap ( SCCOLROW  nInd1,
SCCOLROW  nInd2 
)
inline

Call this only during normal sorting, not from reordering.

Definition at line 321 of file table3.cxx.

References mpRows, n1, n2, and nStart.

Referenced by ScTable::DecoladeRow(), and ScTable::QuickSort().

Member Data Documentation

std::vector<SCCOLROW> ScSortInfoArray::maOrderIndices
private

index of last non-empty cell position.

Definition at line 266 of file table3.cxx.

Referenced by GetOrderIndices().

bool ScSortInfoArray::mbKeepQuery
private

Definition at line 267 of file table3.cxx.

Referenced by IsKeepQuery().

bool ScSortInfoArray::mbUpdateRefs
private

Definition at line 268 of file table3.cxx.

Referenced by IsUpdateRefs().

SCCOLROW ScSortInfoArray::mnLastIndex
private

Definition at line 264 of file table3.cxx.

Referenced by GetLast().

std::unique_ptr<RowsType> ScSortInfoArray::mpRows
private

Definition at line 260 of file table3.cxx.

Referenced by InitDataRows(), ReorderByRow(), and Swap().

std::vector<std::unique_ptr<ScSortInfo[]> > ScSortInfoArray::mvppInfo
private

row-wise data table for sort by row operation.

Definition at line 262 of file table3.cxx.

SCCOLROW ScSortInfoArray::nStart
private

Definition at line 263 of file table3.cxx.

Referenced by Get(), GetStart(), ReorderByRow(), and Swap().


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