eRPC Generator (erpcgen)  Rev. 1.12.0
NXP Semiconductors
FloatValue Class Reference

Double floating point value. More...

#include <Value.hpp>

Inheritance diagram for FloatValue:
Value

Public Member Functions

 FloatValue ()
 Constructor.
 
 FloatValue (double value)
 Constructor. More...
 
 FloatValue (float value)
 Constructor. More...
 
 FloatValue (const FloatValue &other)
 Copy constructor. More...
 
FloatValueoperator= (const FloatValue &other)
 Assign operator. More...
 
virtual std::string getTypeName () const override
 Get FloatValue type name. More...
 
virtual size_t getSize () const override
 Get FloatValue type size. More...
 
double getValue () const
 This function returns value. More...
 
 operator double () const
 Casting operator returns value. More...
 
 operator float () const
 Casting operator returns value. More...
 
FloatValueoperator= (double value)
 Assign operator. More...
 
FloatValueoperator= (float value)
 Assign operator. More...
 
virtual std::string toString () const override
 Get FloatValue type string representation. More...
 
virtual Valueclone () const override
 Clone FloatValue. More...
 
- Public Member Functions inherited from Value
 Value (value_type_t theType)
 Constructor. More...
 
virtual ~Value ()
 Destructor.
 
virtual value_type_t getType () const
 Get Value type. More...
 

Protected Attributes

double m_value
 The double value.
 

Detailed Description

Double floating point value.

Constructor & Destructor Documentation

FloatValue::FloatValue ( double  value)
inlineexplicit

Constructor.

Parameters
[in]valueFloatValue value.
FloatValue::FloatValue ( float  value)
inlineexplicit

Constructor.

Parameters
[in]valueFloatValue value.
FloatValue::FloatValue ( const FloatValue other)
inlineexplicit

Copy constructor.

Parameters
[in]otherFloatValue to copy.

Member Function Documentation

virtual Value* FloatValue::clone ( ) const
inlineoverridevirtual

Clone FloatValue.

Returns
Cloned FloatValue.

Implements Value.

virtual size_t FloatValue::getSize ( ) const
inlineoverridevirtual

Get FloatValue type size.

Returns
FloatValue type size.

Implements Value.

virtual std::string FloatValue::getTypeName ( ) const
inlineoverridevirtual

Get FloatValue type name.

Returns
FloatValue type name.

Implements Value.

double FloatValue::getValue ( ) const
inline

This function returns value.

Returns
value FloatValue value.
FloatValue::operator double ( ) const
inline

Casting operator returns value.

Returns
value FloatValue value.
FloatValue::operator float ( ) const
inline

Casting operator returns value.

Returns
value FloatValue value.
FloatValue& FloatValue::operator= ( const FloatValue other)
inline

Assign operator.

Parameters
[in]otherFloatValue to copy.
Returns
FloatValue reference.
FloatValue& FloatValue::operator= ( double  value)
inline

Assign operator.

Parameters
[in]valueFloatValue value.
Returns
FloatValue reference.
FloatValue& FloatValue::operator= ( float  value)
inline

Assign operator.

Parameters
[in]valueFloatValue value.
Returns
FloatValue reference.
virtual std::string FloatValue::toString ( ) const
inlineoverridevirtual

Get FloatValue type string representation.

Returns
FloatValue type string representation.

Implements Value.


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