fcml  1.2.2
Public Member Functions | Static Public Member Functions | List of all members
fcml::Integer Class Reference

Represents integer value. More...

#include <fcml_common.hpp>

Public Member Functions

 Integer ()
 
 Integer (fcml_int8_t value)
 
 Integer (fcml_int16_t value)
 
 Integer (fcml_int32_t value)
 
 Integer (fcml_int64_t value)
 
 Integer (fcml_uint8_t value)
 
 Integer (fcml_uint16_t value)
 
 Integer (fcml_uint32_t value)
 
 Integer (fcml_uint64_t value)
 
virtual ~Integer ()
 
fcml_int16_t getInt16 () const
 
IntegersetInt16 (fcml_int16_t int16)
 
fcml_int32_t getInt32 () const
 
IntegersetInt32 (fcml_int32_t int32)
 
fcml_int64_t getInt64 () const
 
IntegersetInt64 (fcml_int64_t int64)
 
fcml_int8_t getInt8 () const
 
IntegersetInt8 (fcml_int8_t int8)
 
fcml_bool isSigned () const
 
IntegersetSigned (fcml_bool isSigned)
 
fcml_usize getSize () const
 
IntegersetSize (fcml_usize size)
 
bool operator== (const fcml_uint8_t value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator== (const fcml_int8_t value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator== (const fcml_uint16_t value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator== (const fcml_int16_t value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator== (const fcml_uint32_t value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator== (const fcml_int32_t value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator== (const fcml_uint64_t value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator== (const fcml_int64_t value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator== (const Integer &value) const
 Checks if the integer is equal to the passed value. More...
 
bool operator!= (const fcml_uint8_t value) const
 Checks if the integer is not equal to the passed value. More...
 
bool operator!= (const fcml_int8_t value) const
 Checks if the integer is not equal to the passed value. More...
 
bool operator!= (const fcml_uint16_t value) const
 Checks if the integer is not equal to the passed value. More...
 
bool operator!= (const fcml_int16_t value) const
 Checks if the integer is not equal to the passed value. More...
 
bool operator!= (const fcml_uint32_t value) const
 Checks if the integer is not equal to the passed value. More...
 
bool operator!= (const fcml_int32_t value) const
 Checks if the integer is not equal to the passed value. More...
 
bool operator!= (const fcml_uint64_t value) const
 Checks if the integer is not equal to the passed value. More...
 
bool operator!= (const fcml_int64_t value) const
 Checks if the integer is not equal to the passed value. More...
 
bool operator!= (const Integer &value) const
 Checks if the integer is not equal to the passed value. More...
 
 operator fcml_int8_t () const
 A casting operator. More...
 
 operator fcml_uint8_t () const
 A casting operator. More...
 
 operator fcml_int16_t () const
 A casting operator. More...
 
 operator fcml_uint16_t () const
 A casting operator. More...
 
 operator fcml_int32_t () const
 A casting operator. More...
 
 operator fcml_uint32_t () const
 A casting operator. More...
 
 operator fcml_int64_t () const
 A casting operator. More...
 
 operator fcml_uint64_t () const
 A casting operator. More...
 
Integeroperator+= (const Integer &arg)
 Addition assignment. More...
 
Integeroperator*= (const Integer &arg)
 Multiplication assignment. More...
 
Integeroperator/= (const Integer &arg)
 Division assignment. More...
 
Integeroperator-= (const Integer &arg)
 Subtraction assignment. More...
 
Integer operator+ (const Integer &src) const
 Addition operator. More...
 
Integer operator- (const Integer &src) const
 Subtraction operator. More...
 
Integer operator* (const Integer &src) const
 Multiplication operator. More...
 
Integer operator/ (const Integer &src) const
 Division operator. More...
 

Static Public Member Functions

static Integer int8 (fcml_int8_t value)
 Factory method which creates an instance fo the Integer for given parameter. More...
 
static Integer uint8 (fcml_uint8_t value)
 Factory method which creates an instance fo the Integer for given parameter. More...
 
static Integer int16 (fcml_int16_t value)
 Factory method which creates an instance fo the Integer for given parameter. More...
 
static Integer uint16 (fcml_uint16_t value)
 Factory method which creates an instance fo the Integer for given parameter. More...
 
static Integer int32 (fcml_int32_t value)
 Factory method which creates an insatnce fo the Integer for given parameter. More...
 
static Integer uint32 (fcml_uint32_t value)
 Factory method which creates an insatnce fo the Integer for given parameter. More...
 
static Integer int64 (fcml_int64_t value)
 Factory method which creates an insatnce fo the Integer for given parameter. More...
 
static Integer uint64 (fcml_uint64_t value)
 Factory method which creates an insatnce fo the Integer for given parameter. More...
 

Detailed Description

Represents integer value.

Since
1.1.0

Constructor & Destructor Documentation

◆ Integer() [1/9]

fcml::Integer::Integer ( )
inline
Since
1.1.0

◆ Integer() [2/9]

fcml::Integer::Integer ( fcml_int8_t  value)
inline
Since
1.1.0

◆ Integer() [3/9]

fcml::Integer::Integer ( fcml_int16_t  value)
inline
Since
1.1.0

◆ Integer() [4/9]

fcml::Integer::Integer ( fcml_int32_t  value)
inline
Since
1.1.0

◆ Integer() [5/9]

fcml::Integer::Integer ( fcml_int64_t  value)
inline
Since
1.1.0

◆ Integer() [6/9]

fcml::Integer::Integer ( fcml_uint8_t  value)
inline
Since
1.1.0

◆ Integer() [7/9]

fcml::Integer::Integer ( fcml_uint16_t  value)
inline
Since
1.1.0

◆ Integer() [8/9]

fcml::Integer::Integer ( fcml_uint32_t  value)
inline
Since
1.1.0

◆ Integer() [9/9]

fcml::Integer::Integer ( fcml_uint64_t  value)
inline
Since
1.1.0

◆ ~Integer()

virtual fcml::Integer::~Integer ( )
inlinevirtual
Since
1.1.0

Member Function Documentation

◆ getInt16()

fcml_int16_t fcml::Integer::getInt16 ( ) const
inline
Since
1.1.0

◆ getInt32()

fcml_int32_t fcml::Integer::getInt32 ( ) const
inline
Since
1.1.0

◆ getInt64()

fcml_int64_t fcml::Integer::getInt64 ( ) const
inline
Since
1.1.0

◆ getInt8()

fcml_int8_t fcml::Integer::getInt8 ( ) const
inline
Since
1.1.0

◆ getSize()

fcml_usize fcml::Integer::getSize ( ) const
inline
Since
1.1.0

◆ int16()

static Integer fcml::Integer::int16 ( fcml_int16_t  value)
inlinestatic

Factory method which creates an instance fo the Integer for given parameter.

Parameters
valueThe value for the newly created Integer.
Returns
The created Integer instance.
Since
1.1.0

◆ int32()

static Integer fcml::Integer::int32 ( fcml_int32_t  value)
inlinestatic

Factory method which creates an insatnce fo the Integer for given parameter.

Parameters
valueThe value for the newly created Integer.
Returns
The created Integer instance.
Since
1.1.0

◆ int64()

static Integer fcml::Integer::int64 ( fcml_int64_t  value)
inlinestatic

Factory method which creates an insatnce fo the Integer for given parameter.

Parameters
valueThe value for the newly created Integer.
Returns
The created Integer instance.
Since
1.1.0

◆ int8()

static Integer fcml::Integer::int8 ( fcml_int8_t  value)
inlinestatic

Factory method which creates an instance fo the Integer for given parameter.

Parameters
valueThe value for the newly created Integer.
Returns
The created Integer instance.
Since
1.1.0

◆ isSigned()

fcml_bool fcml::Integer::isSigned ( ) const
inline
Since
1.1.0

◆ operator fcml_int16_t()

fcml::Integer::operator fcml_int16_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.

◆ operator fcml_int32_t()

fcml::Integer::operator fcml_int32_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.

◆ operator fcml_int64_t()

fcml::Integer::operator fcml_int64_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.

◆ operator fcml_int8_t()

fcml::Integer::operator fcml_int8_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong data size.

◆ operator fcml_uint16_t()

fcml::Integer::operator fcml_uint16_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.

◆ operator fcml_uint32_t()

fcml::Integer::operator fcml_uint32_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.

◆ operator fcml_uint64_t()

fcml::Integer::operator fcml_uint64_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.

◆ operator fcml_uint8_t()

fcml::Integer::operator fcml_uint8_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong indeger size.

◆ operator!=() [1/9]

bool fcml::Integer::operator!= ( const fcml_uint8_t  value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator!=() [2/9]

bool fcml::Integer::operator!= ( const fcml_int8_t  value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator!=() [3/9]

bool fcml::Integer::operator!= ( const fcml_uint16_t  value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator!=() [4/9]

bool fcml::Integer::operator!= ( const fcml_int16_t  value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator!=() [5/9]

bool fcml::Integer::operator!= ( const fcml_uint32_t  value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator!=() [6/9]

bool fcml::Integer::operator!= ( const fcml_int32_t  value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator!=() [7/9]

bool fcml::Integer::operator!= ( const fcml_uint64_t  value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator!=() [8/9]

bool fcml::Integer::operator!= ( const fcml_int64_t  value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator!=() [9/9]

bool fcml::Integer::operator!= ( const Integer value) const
inline

Checks if the integer is not equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are not equal; otherwise false.
Since
1.1.0

◆ operator*()

Integer fcml::Integer::operator* ( const Integer src) const
inline

Multiplication operator.

Since
1.1.0

◆ operator*=()

Integer& fcml::Integer::operator*= ( const Integer arg)
inline

Multiplication assignment.

Since
1.1.0

◆ operator+()

Integer fcml::Integer::operator+ ( const Integer src) const
inline

Addition operator.

Since
1.1.0

◆ operator+=()

Integer& fcml::Integer::operator+= ( const Integer arg)
inline

Addition assignment.

Since
1.1.0

◆ operator-()

Integer fcml::Integer::operator- ( const Integer src) const
inline

Subtraction operator.

Since
1.1.0

◆ operator-=()

Integer& fcml::Integer::operator-= ( const Integer arg)
inline

Subtraction assignment.

Since
1.1.0

◆ operator/()

Integer fcml::Integer::operator/ ( const Integer src) const
inline

Division operator.

Since
1.1.0

◆ operator/=()

Integer& fcml::Integer::operator/= ( const Integer arg)
inline

Division assignment.

Since
1.1.0

◆ operator==() [1/9]

bool fcml::Integer::operator== ( const fcml_uint8_t  value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ operator==() [2/9]

bool fcml::Integer::operator== ( const fcml_int8_t  value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ operator==() [3/9]

bool fcml::Integer::operator== ( const fcml_uint16_t  value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ operator==() [4/9]

bool fcml::Integer::operator== ( const fcml_int16_t  value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ operator==() [5/9]

bool fcml::Integer::operator== ( const fcml_uint32_t  value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ operator==() [6/9]

bool fcml::Integer::operator== ( const fcml_int32_t  value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ operator==() [7/9]

bool fcml::Integer::operator== ( const fcml_uint64_t  value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ operator==() [8/9]

bool fcml::Integer::operator== ( const fcml_int64_t  value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ operator==() [9/9]

bool fcml::Integer::operator== ( const Integer value) const
inline

Checks if the integer is equal to the passed value.

Parameters
valueThe source value to be compared with the integer.
Returns
True if values are equal; otherwise false.
Since
1.1.0

◆ setInt16()

Integer& fcml::Integer::setInt16 ( fcml_int16_t  int16)
inline
Since
1.1.0

◆ setInt32()

Integer& fcml::Integer::setInt32 ( fcml_int32_t  int32)
inline
Since
1.1.0

◆ setInt64()

Integer& fcml::Integer::setInt64 ( fcml_int64_t  int64)
inline
Since
1.1.0

◆ setInt8()

Integer& fcml::Integer::setInt8 ( fcml_int8_t  int8)
inline
Since
1.1.0

◆ setSigned()

Integer& fcml::Integer::setSigned ( fcml_bool  isSigned)
inline
Since
1.1.0

◆ setSize()

Integer& fcml::Integer::setSize ( fcml_usize  size)
inline
Since
1.1.0

◆ uint16()

static Integer fcml::Integer::uint16 ( fcml_uint16_t  value)
inlinestatic

Factory method which creates an instance fo the Integer for given parameter.

Parameters
valueThe value for the newly created Integer.
Returns
The created Integer instance.
Since
1.1.0

◆ uint32()

static Integer fcml::Integer::uint32 ( fcml_uint32_t  value)
inlinestatic

Factory method which creates an insatnce fo the Integer for given parameter.

Parameters
valueThe value for the newly created Integer.
Returns
The created Integer instance.
Since
1.1.0

◆ uint64()

static Integer fcml::Integer::uint64 ( fcml_uint64_t  value)
inlinestatic

Factory method which creates an insatnce fo the Integer for given parameter.

Parameters
valueThe value for the newly created Integer.
Returns
The created Integer instance.
Since
1.1.0

◆ uint8()

static Integer fcml::Integer::uint8 ( fcml_uint8_t  value)
inlinestatic

Factory method which creates an instance fo the Integer for given parameter.

Parameters
valueThe value for the newly created Integer.
Returns
The created Integer instance.
Since
1.1.0

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