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

indexes when calculating running totals More...

#include <dptabres.hxx>

Collaboration diagram for ScDPRunningTotalState:
[legend]

Public Types

typedef std::vector< sal_Int32 > IndexArray
 

Public Member Functions

 ScDPRunningTotalState (ScDPResultMember *pColRoot, ScDPResultMember *pRowRoot)
 array of sal_Int32 terminated by -1. More...
 
ScDPResultMemberGetColResRoot () const
 
ScDPResultMemberGetRowResRoot () const
 
const IndexArrayGetColVisible () const
 
const IndexArrayGetColSorted () const
 
const IndexArrayGetRowVisible () const
 
const IndexArrayGetRowSorted () const
 
void AddColIndex (sal_Int32 nVisible, tools::Long nSorted)
 
void AddRowIndex (sal_Int32 nVisible, tools::Long nSorted)
 
void RemoveColIndex ()
 
void RemoveRowIndex ()
 

Private Attributes

ScDPResultMemberpColResRoot
 
ScDPResultMemberpRowResRoot
 
IndexArray maColVisible
 
IndexArray maColSorted
 
IndexArray maRowVisible
 
IndexArray maRowSorted
 

Detailed Description

indexes when calculating running totals

Col/RowVisible: simple counts from 0 - without sort order applied

Col/RowSorted: with sort order applied - member index (used otherwise - so other members' children can be accessed).

Definition at line 104 of file dptabres.hxx.

Member Typedef Documentation

◆ IndexArray

typedef std::vector<sal_Int32> ScDPRunningTotalState::IndexArray

Definition at line 107 of file dptabres.hxx.

Constructor & Destructor Documentation

◆ ScDPRunningTotalState()

ScDPRunningTotalState::ScDPRunningTotalState ( ScDPResultMember pColRoot,
ScDPResultMember pRowRoot 
)

array of sal_Int32 terminated by -1.

Definition at line 308 of file dptabres.cxx.

References maColSorted, maColVisible, maRowSorted, and maRowVisible.

Member Function Documentation

◆ AddColIndex()

void ScDPRunningTotalState::AddColIndex ( sal_Int32  nVisible,
tools::Long  nSorted 
)

Definition at line 318 of file dptabres.cxx.

References maColSorted, and maColVisible.

Referenced by ScDPDataDimension::UpdateRunningTotals().

◆ AddRowIndex()

void ScDPRunningTotalState::AddRowIndex ( sal_Int32  nVisible,
tools::Long  nSorted 
)

Definition at line 327 of file dptabres.cxx.

References maRowSorted, and maRowVisible.

Referenced by ScDPResultDimension::UpdateRunningTotals().

◆ GetColResRoot()

ScDPResultMember * ScDPRunningTotalState::GetColResRoot ( ) const
inline

Definition at line 111 of file dptabres.hxx.

References pColResRoot.

Referenced by ScDPDataMember::UpdateRunningTotals().

◆ GetColSorted()

const IndexArray & ScDPRunningTotalState::GetColSorted ( ) const
inline

◆ GetColVisible()

const IndexArray & ScDPRunningTotalState::GetColVisible ( ) const
inline

Definition at line 114 of file dptabres.hxx.

References maColVisible.

Referenced by ScDPDataMember::UpdateRunningTotals().

◆ GetRowResRoot()

ScDPResultMember * ScDPRunningTotalState::GetRowResRoot ( ) const
inline

◆ GetRowSorted()

const IndexArray & ScDPRunningTotalState::GetRowSorted ( ) const
inline

◆ GetRowVisible()

const IndexArray & ScDPRunningTotalState::GetRowVisible ( ) const
inline

Definition at line 116 of file dptabres.hxx.

References maRowVisible.

Referenced by ScDPDataMember::UpdateRunningTotals().

◆ RemoveColIndex()

void ScDPRunningTotalState::RemoveColIndex ( )

Definition at line 336 of file dptabres.cxx.

References maColSorted, and maColVisible.

Referenced by ScDPDataDimension::UpdateRunningTotals().

◆ RemoveRowIndex()

void ScDPRunningTotalState::RemoveRowIndex ( )

Definition at line 352 of file dptabres.cxx.

References maRowSorted, and maRowVisible.

Referenced by ScDPResultDimension::UpdateRunningTotals().

Member Data Documentation

◆ maColSorted

IndexArray ScDPRunningTotalState::maColSorted
mutableprivate

Definition at line 129 of file dptabres.hxx.

Referenced by AddColIndex(), GetColSorted(), RemoveColIndex(), and ScDPRunningTotalState().

◆ maColVisible

IndexArray ScDPRunningTotalState::maColVisible
mutableprivate

Definition at line 128 of file dptabres.hxx.

Referenced by AddColIndex(), GetColVisible(), RemoveColIndex(), and ScDPRunningTotalState().

◆ maRowSorted

IndexArray ScDPRunningTotalState::maRowSorted
mutableprivate

Definition at line 131 of file dptabres.hxx.

Referenced by AddRowIndex(), GetRowSorted(), RemoveRowIndex(), and ScDPRunningTotalState().

◆ maRowVisible

IndexArray ScDPRunningTotalState::maRowVisible
mutableprivate

Definition at line 130 of file dptabres.hxx.

Referenced by AddRowIndex(), GetRowVisible(), RemoveRowIndex(), and ScDPRunningTotalState().

◆ pColResRoot

ScDPResultMember* ScDPRunningTotalState::pColResRoot
private

Definition at line 125 of file dptabres.hxx.

Referenced by GetColResRoot().

◆ pRowResRoot

ScDPResultMember* ScDPRunningTotalState::pRowResRoot
private

Definition at line 126 of file dptabres.hxx.

Referenced by GetRowResRoot().


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