LibreOffice Module tools (master) 1
Public Member Functions | List of all members
Range Class Referencefinal

#include <gen.hxx>

Inheritance diagram for Range:
[legend]
Collaboration diagram for Range:
[legend]

Public Member Functions

constexpr Range ()
 
constexpr Range (tools::Long nMin, tools::Long nMax)
 
tools::Long Min () const
 
tools::Long Max () const
 
tools::Long Len () const
 
tools::LongMin ()
 
tools::LongMax ()
 
bool Contains (tools::Long nIs) const
 
void Normalize ()
 
Pair const & toPair () const
 
PairtoPair ()
 
TOOLS_DLLPUBLIC rtl::OString toString () const
 

Additional Inherited Members

- Protected Member Functions inherited from Pair
constexpr Pair ()
 
constexpr Pair (tools::Long nA, tools::Long nB)
 
tools::Long A () const
 
tools::Long B () const
 
tools::LongA ()
 
tools::LongB ()
 
TOOLS_DLLPUBLIC rtl::OString toString () const
 
TOOLS_DLLPUBLIC size_t GetHashValue () const
 
- Protected Attributes inherited from Pair
tools::Long mnA
 
tools::Long mnB
 

Detailed Description

Definition at line 350 of file gen.hxx.

Constructor & Destructor Documentation

◆ Range() [1/2]

constexpr Range::Range ( )
inlineconstexpr

Definition at line 353 of file gen.hxx.

◆ Range() [2/2]

constexpr Range::Range ( tools::Long  nMin,
tools::Long  nMax 
)
inlineconstexpr

Definition at line 354 of file gen.hxx.

Member Function Documentation

◆ Contains()

bool Range::Contains ( tools::Long  nIs) const
inline

Definition at line 373 of file gen.hxx.

References Pair::mnA, and Pair::mnB.

Referenced by MultiSelection::Select().

◆ Len()

tools::Long Range::Len ( ) const
inline

◆ Max() [1/2]

tools::Long & Range::Max ( )
inline

Definition at line 361 of file gen.hxx.

◆ Max() [2/2]

tools::Long Range::Max ( ) const
inline

◆ Min() [1/2]

tools::Long & Range::Min ( )
inline

Definition at line 360 of file gen.hxx.

◆ Min() [2/2]

tools::Long Range::Min ( ) const
inline

Definition at line 356 of file gen.hxx.

Referenced by MultiSelection::Select(), and MultiSelection::SetTotalRange().

◆ Normalize()

void Range::Normalize ( )
inline

Definition at line 378 of file gen.hxx.

References Pair::mnA, and Pair::mnB.

◆ toPair() [1/2]

Pair & Range::toPair ( )
inline

Definition at line 368 of file gen.hxx.

◆ toPair() [2/2]

Pair const & Range::toPair ( ) const
inline

Definition at line 367 of file gen.hxx.

Referenced by operator==().

◆ toString()

OString Pair::toString ( ) const

Definition at line 54 of file gen.cxx.


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