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::Int Class Reference

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

#include <CRNInt.h>

+ Inheritance diagram for crn::Int:
+ Collaboration diagram for crn::Int:

Public Member Functions

 Int (int i=0) noexcept
 Default constructor. More...
 
virtual ~Int () override=default
 
 Int (const Int &)=default
 
 Int (Int &&)=default
 
Intoperator= (const Int &)=default
 
Intoperator= (Int &&)=default
 
 operator int () const noexcept
 Converts to int. More...
 
Intoperator+= (Int i) noexcept
 
Intoperator-= (Int i) noexcept
 
Intoperator*= (Int i) noexcept
 
Intoperator/= (Int i) noexcept
 
bool operator< (Int i) noexcept
 
bool operator> (Int i) noexcept
 
bool operator<= (Int i) noexcept
 
bool operator>= (Int i) 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
September 2009
Version
0.1

Definition at line 40 of file CRNInt.h.

Constructor & Destructor Documentation

crn::Int::Int ( int  i = 0)
inlinenoexcept

Default constructor.

Definition at line 44 of file CRNInt.h.

virtual crn::Int::~Int ( )
overridevirtualdefault
crn::Int::Int ( const Int )
default
crn::Int::Int ( Int &&  )
default

Member Function Documentation

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

Reads from an XML element.

Unsafe load

Exceptions
ExceptionInvalidArgumentnot an Int
Parameters
[in]elthe element to load

Definition at line 37 of file CRNInt.cpp.

crn::Int::operator int ( ) const
inlinenoexcept

Converts to int.

Definition at line 53 of file CRNInt.h.

Int& crn::Int::operator*= ( Int  i)
inlinenoexcept

Definition at line 57 of file CRNInt.h.

Int& crn::Int::operator+= ( Int  i)
inlinenoexcept

Definition at line 55 of file CRNInt.h.

Int& crn::Int::operator-= ( Int  i)
inlinenoexcept

Definition at line 56 of file CRNInt.h.

Int& crn::Int::operator/= ( Int  i)
inlinenoexcept

Definition at line 58 of file CRNInt.h.

bool crn::Int::operator< ( Int  i)
inlinenoexcept

Definition at line 59 of file CRNInt.h.

bool crn::Int::operator<= ( Int  i)
inlinenoexcept

Definition at line 61 of file CRNInt.h.

Int& crn::Int::operator= ( const Int )
default
Int& crn::Int::operator= ( Int &&  )
default
bool crn::Int::operator> ( Int  i)
inlinenoexcept

Definition at line 60 of file CRNInt.h.

bool crn::Int::operator>= ( Int  i)
inlinenoexcept

Definition at line 62 of file CRNInt.h.

xml::Element Int::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 54 of file CRNInt.cpp.


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