LibreOffice Module basegfx (master) 1
Public Types | Public Member Functions | Protected Attributes | List of all members
basegfx::BasicRange< T, Traits > Class Template Reference

#include <basicrange.hxx>

Inheritance diagram for basegfx::BasicRange< T, Traits >:
[legend]

Public Types

typedef T ValueType
 
typedef Traits TraitsType
 

Public Member Functions

 BasicRange ()
 
 BasicRange (T nValue)
 
void reset ()
 
bool isEmpty () const
 
getMinimum () const
 
getMaximum () const
 
double getCenter () const
 
bool isInside (T nValue) const
 
bool isInside (const BasicRange &rRange) const
 
bool overlaps (const BasicRange &rRange) const
 
bool overlapsMore (const BasicRange &rRange) const
 
bool operator== (const BasicRange &rRange) const
 
bool operator!= (const BasicRange &rRange) const
 
bool equal (const BasicRange &rRange) const
 
void expand (T nValue)
 
void expand (const BasicRange &rRange)
 
void intersect (const BasicRange &rRange)
 
void grow (T nValue)
 
clamp (T nValue) const
 
Traits::DifferenceType getRange () const
 

Protected Attributes

mnMinimum
 
mnMaximum
 

Detailed Description

template<typename T, typename Traits>
class basegfx::BasicRange< T, Traits >

Definition at line 29 of file basicrange.hxx.

Member Typedef Documentation

◆ TraitsType

template<typename T , typename Traits >
typedef Traits basegfx::BasicRange< T, Traits >::TraitsType

Definition at line 37 of file basicrange.hxx.

◆ ValueType

template<typename T , typename Traits >
typedef T basegfx::BasicRange< T, Traits >::ValueType

Definition at line 36 of file basicrange.hxx.

Constructor & Destructor Documentation

◆ BasicRange() [1/2]

template<typename T , typename Traits >
basegfx::BasicRange< T, Traits >::BasicRange ( )
inline

Definition at line 39 of file basicrange.hxx.

◆ BasicRange() [2/2]

template<typename T , typename Traits >
basegfx::BasicRange< T, Traits >::BasicRange ( nValue)
inlineexplicit

Definition at line 45 of file basicrange.hxx.

References nValue.

Member Function Documentation

◆ clamp()

template<typename T , typename Traits >
T basegfx::BasicRange< T, Traits >::clamp ( nValue) const
inline

◆ equal()

template<typename T , typename Traits >
bool basegfx::BasicRange< T, Traits >::equal ( const BasicRange< T, Traits > &  rRange) const
inline

◆ expand() [1/2]

template<typename T , typename Traits >
void basegfx::BasicRange< T, Traits >::expand ( const BasicRange< T, Traits > &  rRange)
inline

◆ expand() [2/2]

template<typename T , typename Traits >
void basegfx::BasicRange< T, Traits >::expand ( nValue)
inline

◆ getCenter()

template<typename T , typename Traits >
double basegfx::BasicRange< T, Traits >::getCenter ( ) const
inline

◆ getMaximum()

template<typename T , typename Traits >
T basegfx::BasicRange< T, Traits >::getMaximum ( ) const
inline

◆ getMinimum()

template<typename T , typename Traits >
T basegfx::BasicRange< T, Traits >::getMinimum ( ) const
inline

◆ getRange()

template<typename T , typename Traits >
Traits::DifferenceType basegfx::BasicRange< T, Traits >::getRange ( ) const
inline

◆ grow()

template<typename T , typename Traits >
void basegfx::BasicRange< T, Traits >::grow ( nValue)
inline

◆ intersect()

template<typename T , typename Traits >
void basegfx::BasicRange< T, Traits >::intersect ( const BasicRange< T, Traits > &  rRange)
inline

◆ isEmpty()

template<typename T , typename Traits >
bool basegfx::BasicRange< T, Traits >::isEmpty ( ) const
inline

◆ isInside() [1/2]

template<typename T , typename Traits >
bool basegfx::BasicRange< T, Traits >::isInside ( const BasicRange< T, Traits > &  rRange) const
inline

◆ isInside() [2/2]

template<typename T , typename Traits >
bool basegfx::BasicRange< T, Traits >::isInside ( nValue) const
inline

◆ operator!=()

template<typename T , typename Traits >
bool basegfx::BasicRange< T, Traits >::operator!= ( const BasicRange< T, Traits > &  rRange) const
inline

◆ operator==()

template<typename T , typename Traits >
bool basegfx::BasicRange< T, Traits >::operator== ( const BasicRange< T, Traits > &  rRange) const
inline

◆ overlaps()

template<typename T , typename Traits >
bool basegfx::BasicRange< T, Traits >::overlaps ( const BasicRange< T, Traits > &  rRange) const
inline

◆ overlapsMore()

template<typename T , typename Traits >
bool basegfx::BasicRange< T, Traits >::overlapsMore ( const BasicRange< T, Traits > &  rRange) const
inline

◆ reset()

template<typename T , typename Traits >
void basegfx::BasicRange< T, Traits >::reset ( )
inline

Member Data Documentation

◆ mnMaximum

template<typename T , typename Traits >
T basegfx::BasicRange< T, Traits >::mnMaximum
protected

◆ mnMinimum

template<typename T , typename Traits >
T basegfx::BasicRange< T, Traits >::mnMinimum
protected

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