44 Int(
int i = 0) noexcept:val(i) {}
45 virtual ~Int()
override =
default;
53 operator int() const noexcept {
return val; }
BoolNotBoolDummy operator-(const BoolNotBoolDummy &, const BoolNotBoolDummy &)
bool operator<=(Int i) noexcept
void Deserialize(xml::Element &el)
Reads from an XML element.
#define CRN_SERIALIZATION_CONSTRUCTOR(classname)
Defines a default constructor from xml element.
bool operator>(Int i) noexcept
bool operator>=(Int i) noexcept
bool operator<(Int i) noexcept
Int & operator/=(Int i) noexcept
Int & operator+=(Int i) noexcept
Int & operator=(const Int &)=default
xml::Element Serialize(xml::Element &parent) const
Dumps to an XML element.
BoolNotBoolDummy operator*(const BoolNotBoolDummy &, const BoolNotBoolDummy &)
BoolNotBoolDummy operator+(const BoolNotBoolDummy &, const BoolNotBoolDummy &)
Int & operator-=(Int i) noexcept
double Distance(const Int &i1, const Int &i2) noexcept
Int(int i=0) noexcept
Default constructor.
void Abs(Image< T > &img, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr) noexcept
Replaces each pixel by its absolute value.
BoolNotBoolDummy operator/(const BoolNotBoolDummy &, const BoolNotBoolDummy &)
Int & operator*=(Int i) noexcept
#define CRN_DECLARE_CLASS_CONSTRUCTOR(classname)
Declares a class constructor.
Interface class for the metric real number class.
virtual ~Int() override=default