eRPC Generator (erpcgen)
Rev. 1.12.0
NXP Semiconductors
|
64-bit integer value. More...
#include <Value.hpp>
Public Types | |
enum | int_type_t { kSigned, kSignedLong, kUnsigned, kUnsignedLong } |
Supported sizes of integers. | |
Public Member Functions | |
IntegerValue (int_type_t type=kSigned) | |
Constructor. | |
IntegerValue (uint64_t value, int_type_t type=kSigned) | |
Constructor. More... | |
IntegerValue (const IntegerValue &other) | |
Copy constructor. More... | |
virtual std::string | getTypeName () const override |
Get IntegerValue type name. More... | |
virtual size_t | getSize () const override |
Get IntegerValue type size. More... | |
uint64_t | getValue () const |
This function returns value. More... | |
int_type_t | getIntType () |
This function returns signed/unsigned type. More... | |
operator uint64_t () const | |
Casting operator. More... | |
IntegerValue & | operator= (int64_t value) |
Assign operator. More... | |
virtual std::string | toString () const override |
Get IntegerValue type string representation. More... | |
virtual Value * | clone () const override |
Clone IntegerValue. 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 | |
uint64_t | m_value |
The integer value. | |
int_type_t | m_intType |
The integer type. | |
64-bit integer value.
|
inlineexplicit |
Constructor.
[in] | value | IntegerValue value. |
|
inline |
Copy constructor.
[in] | other | IntegerValue to copy. |
|
inlineoverridevirtual |
|
inline |
This function returns signed/unsigned type.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
This function returns value.
|
inline |
Casting operator.
|
inline |
|
inlineoverridevirtual |
Get IntegerValue type string representation.
Implements Value.