libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
crn::Real Class Reference

Interface class for the metric real number class. More...

#include <CRNReal.h>

+ Inheritance diagram for crn::Real:
+ Collaboration diagram for crn::Real:

Public Member Functions

 Real (double d=0)
 Default constructor. More...
 
virtual ~Real () override=default
 Destructor. More...
 
 Real (const Real &)=default
 
 Real (Real &&)=default
 
Realoperator= (const Real &)=default
 
Realoperator= (Real &&)=default
 
 operator double () const noexcept
 Converts to double. More...
 
Realoperator+= (Real r) noexcept
 
Realoperator-= (Real r) noexcept
 
Realoperator*= (Real r) noexcept
 
Realoperator/= (Real r) noexcept
 
bool operator< (Real r) noexcept
 
bool operator> (Real r) noexcept
 
bool operator<= (Real r) noexcept
 
bool operator>= (Real r) noexcept
 
void Deserialize (xml::Element &el)
 Reads from an XML element. More...
 
xml::Element Serialize (xml::Element &parent) const
 Dumps to an XML element. More...
 
- Public Member Functions inherited from crn::Object
virtual ~Object ()=default
 

Detailed Description

Interface class for the metric real number class.

Author
Yann LEYDIER
Date
March 2007
Version
0.3

Definition at line 38 of file CRNReal.h.

Constructor & Destructor Documentation

crn::Real::Real ( double  d = 0)
inline

Default constructor.

Definition at line 42 of file CRNReal.h.

virtual crn::Real::~Real ( )
overridevirtualdefault

Destructor.

crn::Real::Real ( const Real )
default
crn::Real::Real ( Real &&  )
default

Member Function Documentation

void Real::Deserialize ( xml::Element el)

Reads from an XML element.

Unsafe load

Exceptions
ExceptionInvalidArgumentnot a Real
Parameters
[in]elthe element to load

Definition at line 40 of file CRNReal.cpp.

crn::Real::operator double ( ) const
inlinenoexcept

Converts to double.

Definition at line 52 of file CRNReal.h.

Real& crn::Real::operator*= ( Real  r)
inlinenoexcept

Definition at line 56 of file CRNReal.h.

Real& crn::Real::operator+= ( Real  r)
inlinenoexcept

Definition at line 54 of file CRNReal.h.

Real& crn::Real::operator-= ( Real  r)
inlinenoexcept

Definition at line 55 of file CRNReal.h.

Real& crn::Real::operator/= ( Real  r)
inlinenoexcept

Definition at line 57 of file CRNReal.h.

bool crn::Real::operator< ( Real  r)
inlinenoexcept

Definition at line 58 of file CRNReal.h.

bool crn::Real::operator<= ( Real  r)
inlinenoexcept

Definition at line 60 of file CRNReal.h.

Real& crn::Real::operator= ( const Real )
default
Real& crn::Real::operator= ( Real &&  )
default
bool crn::Real::operator> ( Real  r)
inlinenoexcept

Definition at line 59 of file CRNReal.h.

bool crn::Real::operator>= ( Real  r)
inlinenoexcept

Definition at line 61 of file CRNReal.h.

xml::Element Real::Serialize ( xml::Element parent) const

Dumps to an XML element.

Unsafe save

Parameters
[in]parentthe parent element to which we will add the new element
Returns
The newly created element

Definition at line 57 of file CRNReal.cpp.


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