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

Iterator to traverse the addresses in a range if the range is one dimensional. More...

#include <SparklineRenderer.hxx>

Collaboration diagram for sc::RangeTraverser:
[legend]

Public Member Functions

 RangeTraverser (ScRange const &rRange)
 
ScAddress const & first ()
 
bool hasNext ()
 
void next ()
 

Private Types

enum class  Direction {
  UNKNOWN ,
  ROW ,
  COLUMN
}
 

Private Attributes

ScAddress m_aCurrent
 
ScRange m_aRange
 
Direction m_eDirection
 

Detailed Description

Iterator to traverse the addresses in a range if the range is one dimensional.

The direction to traverse is detected automatically or hasNext returns false if it is not possible to detect.

Definition at line 173 of file SparklineRenderer.hxx.

Member Enumeration Documentation

◆ Direction

enum class sc::RangeTraverser::Direction
strongprivate
Enumerator
UNKNOWN 
ROW 
COLUMN 

Definition at line 175 of file SparklineRenderer.hxx.

Constructor & Destructor Documentation

◆ RangeTraverser()

sc::RangeTraverser::RangeTraverser ( ScRange const &  rRange)
inline

Definition at line 187 of file SparklineRenderer.hxx.

References UNKNOWN.

Member Function Documentation

◆ first()

ScAddress const & sc::RangeTraverser::first ( )
inline

◆ hasNext()

bool sc::RangeTraverser::hasNext ( )
inline

◆ next()

void sc::RangeTraverser::next ( )
inline

Member Data Documentation

◆ m_aCurrent

ScAddress sc::RangeTraverser::m_aCurrent
private

Definition at line 182 of file SparklineRenderer.hxx.

Referenced by first(), hasNext(), and next().

◆ m_aRange

ScRange sc::RangeTraverser::m_aRange
private

Definition at line 183 of file SparklineRenderer.hxx.

Referenced by first(), and hasNext().

◆ m_eDirection

Direction sc::RangeTraverser::m_eDirection
private

Definition at line 184 of file SparklineRenderer.hxx.

Referenced by first(), hasNext(), and next().


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