fcml  1.1.3
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

fcml::Integer::Integer ( )
inline
Since
1.1.0
fcml::Integer::Integer ( fcml_int8_t  value)
inline
Since
1.1.0
fcml::Integer::Integer ( fcml_int16_t  value)
inline
Since
1.1.0
fcml::Integer::Integer ( fcml_int32_t  value)
inline
Since
1.1.0
fcml::Integer::Integer ( fcml_int64_t  value)
inline
Since
1.1.0
fcml::Integer::Integer ( fcml_uint8_t  value)
inline
Since
1.1.0
fcml::Integer::Integer ( fcml_uint16_t  value)
inline
Since
1.1.0
fcml::Integer::Integer ( fcml_uint32_t  value)
inline
Since
1.1.0
fcml::Integer::Integer ( fcml_uint64_t  value)
inline
Since
1.1.0
virtual fcml::Integer::~Integer ( )
inlinevirtual
Since
1.1.0

Member Function Documentation

fcml_int16_t fcml::Integer::getInt16 ( ) const
inline
Since
1.1.0
fcml_int32_t fcml::Integer::getInt32 ( ) const
inline
Since
1.1.0
fcml_int64_t fcml::Integer::getInt64 ( ) const
inline
Since
1.1.0
fcml_int8_t fcml::Integer::getInt8 ( ) const
inline
Since
1.1.0
fcml_usize fcml::Integer::getSize ( ) const
inline
Since
1.1.0
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
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
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
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
fcml_bool fcml::Integer::isSigned ( ) const
inline
Since
1.1.0
fcml::Integer::operator fcml_int16_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.
fcml::Integer::operator fcml_int32_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.
fcml::Integer::operator fcml_int64_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.
fcml::Integer::operator fcml_int8_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong data size.
fcml::Integer::operator fcml_uint16_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.
fcml::Integer::operator fcml_uint32_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.
fcml::Integer::operator fcml_uint64_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong integer size.
fcml::Integer::operator fcml_uint8_t ( ) const
inline

A casting operator.

Since
1.1.0
Exceptions
BadArgumentExceptionWrong indeger size.
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
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
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
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
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
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
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
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
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
Integer fcml::Integer::operator* ( const Integer src) const
inline

Multiplication operator.

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

Multiplication assignment.

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

Addition operator.

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

Addition assignment.

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

Subtraction operator.

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

Subtraction assignment.

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

Division operator.

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

Division assignment.

Since
1.1.0
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
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
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
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
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
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
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
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
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
Integer& fcml::Integer::setInt16 ( fcml_int16_t  int16)
inline
Since
1.1.0
Integer& fcml::Integer::setInt32 ( fcml_int32_t  int32)
inline
Since
1.1.0
Integer& fcml::Integer::setInt64 ( fcml_int64_t  int64)
inline
Since
1.1.0
Integer& fcml::Integer::setInt8 ( fcml_int8_t  int8)
inline
Since
1.1.0
Integer& fcml::Integer::setSigned ( fcml_bool  isSigned)
inline
Since
1.1.0
Integer& fcml::Integer::setSize ( fcml_usize  size)
inline
Since
1.1.0
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
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
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
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: