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< long > IndexArray
 

Public Member Functions

 ScDPRunningTotalState (ScDPResultMember *pColRoot, ScDPResultMember *pRowRoot)
 array of long integers terminated by -1. More...
 
ScDPResultMemberGetColResRoot () const
 
ScDPResultMemberGetRowResRoot () const
 
const IndexArrayGetColVisible () const
 
const IndexArrayGetColSorted () const
 
const IndexArrayGetRowVisible () const
 
const IndexArrayGetRowSorted () const
 
void AddColIndex (long nVisible, long nSorted)
 
void AddRowIndex (long nVisible, 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 105 of file dptabres.hxx.

Member Typedef Documentation

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

Definition at line 108 of file dptabres.hxx.

Constructor & Destructor Documentation

ScDPRunningTotalState::ScDPRunningTotalState ( ScDPResultMember pColRoot,
ScDPResultMember pRowRoot 
)

array of long integers terminated by -1.

Definition at line 307 of file dptabres.cxx.

References maColSorted, maColVisible, maRowSorted, and maRowVisible.

Member Function Documentation

void ScDPRunningTotalState::AddColIndex ( long  nVisible,
long  nSorted 
)

Definition at line 317 of file dptabres.cxx.

References maColSorted, and maColVisible.

Referenced by ScDPDataDimension::UpdateRunningTotals().

void ScDPRunningTotalState::AddRowIndex ( long  nVisible,
long  nSorted 
)

Definition at line 326 of file dptabres.cxx.

References maRowSorted, and maRowVisible.

Referenced by ScDPResultDimension::UpdateRunningTotals().

ScDPResultMember* ScDPRunningTotalState::GetColResRoot ( ) const
inline

Definition at line 112 of file dptabres.hxx.

References pColResRoot.

Referenced by ScDPDataMember::UpdateRunningTotals().

const IndexArray& ScDPRunningTotalState::GetColSorted ( ) const
inline
const IndexArray& ScDPRunningTotalState::GetColVisible ( ) const
inline

Definition at line 115 of file dptabres.hxx.

References maColVisible.

Referenced by ScDPDataMember::UpdateRunningTotals().

ScDPResultMember* ScDPRunningTotalState::GetRowResRoot ( ) const
inline
const IndexArray& ScDPRunningTotalState::GetRowSorted ( ) const
inline
const IndexArray& ScDPRunningTotalState::GetRowVisible ( ) const
inline

Definition at line 117 of file dptabres.hxx.

References maRowVisible.

Referenced by ScDPDataMember::UpdateRunningTotals().

void ScDPRunningTotalState::RemoveColIndex ( )

Definition at line 335 of file dptabres.cxx.

References maColSorted, and maColVisible.

Referenced by ScDPDataDimension::UpdateRunningTotals().

void ScDPRunningTotalState::RemoveRowIndex ( )

Definition at line 351 of file dptabres.cxx.

References maRowSorted, and maRowVisible.

Referenced by ScDPResultDimension::UpdateRunningTotals().

Member Data Documentation

IndexArray ScDPRunningTotalState::maColSorted
mutableprivate

Definition at line 130 of file dptabres.hxx.

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

IndexArray ScDPRunningTotalState::maColVisible
mutableprivate

Definition at line 129 of file dptabres.hxx.

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

IndexArray ScDPRunningTotalState::maRowSorted
mutableprivate

Definition at line 132 of file dptabres.hxx.

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

IndexArray ScDPRunningTotalState::maRowVisible
mutableprivate

Definition at line 131 of file dptabres.hxx.

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

ScDPResultMember* ScDPRunningTotalState::pColResRoot
private

Definition at line 126 of file dptabres.hxx.

Referenced by GetColResRoot().

ScDPResultMember* ScDPRunningTotalState::pRowResRoot
private

Definition at line 127 of file dptabres.hxx.

Referenced by GetRowResRoot().


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