libcrn
3.9.5
A document image processing library
|
Interface class for the metric real number class. More...
#include <CRNInt.h>
Public Member Functions | |
Int (int i=0) noexcept | |
Default constructor. More... | |
virtual | ~Int () override=default |
Int (const Int &)=default | |
Int (Int &&)=default | |
Int & | operator= (const Int &)=default |
Int & | operator= (Int &&)=default |
operator int () const noexcept | |
Converts to int. More... | |
Int & | operator+= (Int i) noexcept |
Int & | operator-= (Int i) noexcept |
Int & | operator*= (Int i) noexcept |
Int & | operator/= (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... | |
![]() | |
virtual | ~Object ()=default |
Interface class for the metric real number class.
|
inlinenoexcept |
|
overridevirtualdefault |
|
default |
|
default |
void Int::Deserialize | ( | xml::Element & | el | ) |
Reads from an XML element.
Unsafe load
ExceptionInvalidArgument | not an Int |
[in] | el | the element to load |
Definition at line 37 of file CRNInt.cpp.
|
inlinenoexcept |
xml::Element Int::Serialize | ( | xml::Element & | parent | ) | const |
Dumps to an XML element.
Unsafe save
[in] | parent | the parent element to which we will add the new element |
Definition at line 54 of file CRNInt.cpp.