LibreOffice Module tools (master) 1
Classes | Namespaces | Macros | Enumerations | Functions
gen.hxx File Reference
#include <tools/toolsdllapi.h>
#include <tools/long.hxx>
#include <tools/degree.hxx>
#include <limits.h>
#include <algorithm>
#include <ostream>
#include <config_options.h>
#include <o3tl/unit_conversion.hxx>
Include dependency graph for gen.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Pair
 
class  Point
 
class  Size
 
class  Range
 
class  Selection
 
class  tools::Rectangle
 

Namespaces

namespace  rtl
 
namespace  tools
 Note: this class is a true marvel of engineering: because the author could not decide whether it's better to have a closed or half-open interval, they just implemented both in the same class!
 
namespace  tools::detail
 
namespace  o3tl
 

Macros

#define RANGE_MAX   LONG_MAX
 
#define SELECTION_MIN   LONG_MIN
 
#define SELECTION_MAX   LONG_MAX
 
#define RECT_MAX   LONG_MAX
 
#define RECT_MIN   LONG_MIN
 

Enumerations

enum  TriState {
  TRISTATE_FALSE ,
  TRISTATE_TRUE ,
  TRISTATE_INDET
}
 

Functions

bool tools::detail::equal (Pair const &p1, Pair const &p2)
 
Point operator+ (const Point &rVal1, const Point &rVal2)
 
Point operator- (const Point &rVal1, const Point &rVal2)
 
Point operator* (const Point &rVal1, const tools::Long nVal2)
 
Point operator/ (const Point &rVal1, const tools::Long nVal2)
 
bool operator== (Point const &p1, Point const &p2)
 
bool operator!= (Point const &p1, Point const &p2)
 
constexpr Point o3tl::convert (const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const Point &point)
 
bool operator== (Size const &s1, Size const &s2)
 
bool operator!= (Size const &s1, Size const &s2)
 
Size operator+ (const Size &rVal1, const Size &rVal2)
 
Size operator- (const Size &rVal1, const Size &rVal2)
 
Size operator* (const Size &rVal1, const tools::Long nVal2)
 
Size operator/ (const Size &rVal1, const tools::Long nVal2)
 
constexpr Size o3tl::convert (const Size &rSize, o3tl::Length eFrom, o3tl::Length eTo)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const Size &size)
 
bool operator== (Range const &r1, Range const &r2)
 
bool operator!= (Range const &r1, Range const &r2)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const Range &range)
 
bool operator== (Selection const &s1, Selection const &s2)
 
bool operator!= (Selection const &s1, Selection const &s2)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< (std::basic_ostream< charT, traits > &stream, const Selection &selection)
 
Rectangle tools::operator+ (const Rectangle &rRect, const Point &rPt)
 
Rectangle tools::operator- (const Rectangle &rRect, const Point &rPt)
 
constexpr tools::Rectangle o3tl::convert (const tools::Rectangle &rRectangle, o3tl::Length eFrom, o3tl::Length eTo)
 
template<typename charT , typename traits >
std::basic_ostream< charT, traits > & tools::operator<< (std::basic_ostream< charT, traits > &stream, const tools::Rectangle &rectangle)
 

Macro Definition Documentation

◆ RANGE_MAX

#define RANGE_MAX   LONG_MAX

Definition at line 348 of file gen.hxx.

◆ RECT_MAX

#define RECT_MAX   LONG_MAX

Definition at line 465 of file gen.hxx.

◆ RECT_MIN

#define RECT_MIN   LONG_MIN

Definition at line 466 of file gen.hxx.

◆ SELECTION_MAX

#define SELECTION_MAX   LONG_MAX

Definition at line 404 of file gen.hxx.

◆ SELECTION_MIN

#define SELECTION_MIN   LONG_MIN

Definition at line 403 of file gen.hxx.

Enumeration Type Documentation

◆ TriState

enum TriState
Enumerator
TRISTATE_FALSE 
TRISTATE_TRUE 
TRISTATE_INDET 

Definition at line 38 of file gen.hxx.

Function Documentation

◆ operator!=() [1/4]

bool operator!= ( Point const &  p1,
Point const &  p2 
)
inline

Definition at line 180 of file gen.hxx.

◆ operator!=() [2/4]

bool operator!= ( Range const &  r1,
Range const &  r2 
)
inline

Definition at line 389 of file gen.hxx.

◆ operator!=() [3/4]

bool operator!= ( Selection const &  s1,
Selection const &  s2 
)
inline

Definition at line 452 of file gen.hxx.

◆ operator!=() [4/4]

bool operator!= ( Size const &  s1,
Size const &  s2 
)
inline

Definition at line 262 of file gen.hxx.

◆ operator*() [1/2]

Point operator* ( const Point rVal1,
const tools::Long  nVal2 
)
inline

Definition at line 165 of file gen.hxx.

◆ operator*() [2/2]

Size operator* ( const Size rVal1,
const tools::Long  nVal2 
)
inline

Definition at line 305 of file gen.hxx.

◆ operator+() [1/2]

Point operator+ ( const Point rVal1,
const Point rVal2 
)
inline

Definition at line 155 of file gen.hxx.

◆ operator+() [2/2]

Size operator+ ( const Size rVal1,
const Size rVal2 
)
inline

Definition at line 295 of file gen.hxx.

◆ operator-() [1/2]

Point operator- ( const Point rVal1,
const Point rVal2 
)
inline

Definition at line 160 of file gen.hxx.

◆ operator-() [2/2]

Size operator- ( const Size rVal1,
const Size rVal2 
)
inline

Definition at line 300 of file gen.hxx.

◆ operator/() [1/2]

Point operator/ ( const Point rVal1,
const tools::Long  nVal2 
)
inline

Definition at line 170 of file gen.hxx.

◆ operator/() [2/2]

Size operator/ ( const Size rVal1,
const tools::Long  nVal2 
)
inline

Definition at line 310 of file gen.hxx.

◆ operator<<() [1/4]

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< ( std::basic_ostream< charT, traits > &  stream,
const Point point 
)
inline

Definition at line 185 of file gen.hxx.

◆ operator<<() [2/4]

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< ( std::basic_ostream< charT, traits > &  stream,
const Range range 
)
inline

Definition at line 389 of file gen.hxx.

◆ operator<<() [3/4]

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< ( std::basic_ostream< charT, traits > &  stream,
const Selection selection 
)
inline

Definition at line 452 of file gen.hxx.

◆ operator<<() [4/4]

template<typename charT , typename traits >
std::basic_ostream< charT, traits > & operator<< ( std::basic_ostream< charT, traits > &  stream,
const Size size 
)
inline

Definition at line 315 of file gen.hxx.

◆ operator==() [1/4]

bool operator== ( Point const &  p1,
Point const &  p2 
)
inline

Definition at line 175 of file gen.hxx.

References tools::detail::equal(), and Point::toPair().

◆ operator==() [2/4]

bool operator== ( Range const &  r1,
Range const &  r2 
)
inline

Definition at line 384 of file gen.hxx.

References tools::detail::equal(), and Range::toPair().

◆ operator==() [3/4]

bool operator== ( Selection const &  s1,
Selection const &  s2 
)
inline

Definition at line 447 of file gen.hxx.

References tools::detail::equal(), and Selection::toPair().

◆ operator==() [4/4]

bool operator== ( Size const &  s1,
Size const &  s2 
)
inline

Definition at line 257 of file gen.hxx.

References tools::detail::equal(), and Size::toPair().