EmbeddedProto  2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
Public Member Functions | List of all members
EmbeddedProto::floatfixed Class Reference

#include <Fields.h>

Inheritance diagram for EmbeddedProto::floatfixed:
Inheritance graph
[legend]
Collaboration diagram for EmbeddedProto::floatfixed:
Collaboration graph
[legend]

Public Member Functions

 floatfixed ()
 
 floatfixed (const float &v)
 
 floatfixed (const float &&v)
 
 ~floatfixed () override=default
 
Error serialize_with_id (uint32_t field_number, WriteBufferInterface &buffer) const final
 
Error serialize (WriteBufferInterface &buffer) const final
 
Error deserialize (ReadBufferInterface &buffer) final
 
- Public Member Functions inherited from EmbeddedProto::FieldTemplate< float >
 FieldTemplate ()=default
 
 FieldTemplate (const float &v)
 
 FieldTemplate (const float &&v)
 
 ~FieldTemplate () override=default
 
void set (const float &v)
 
void set (const float &&v)
 
void operator= (const float &v)
 
void operator= (const float &&v)
 
const float & get () const
 
float & get ()
 
 operator float () const
 
bool operator== (const float &rhs)
 
bool operator== (const FieldTemplate< TYPE_RHS > &rhs)
 
bool operator!= (const float &rhs)
 
bool operator!= (const FieldTemplate< TYPE_RHS > &rhs)
 
bool operator> (const float &rhs)
 
bool operator> (const FieldTemplate< TYPE_RHS > &rhs)
 
bool operator< (const float &rhs)
 
bool operator< (const FieldTemplate< TYPE_RHS > &rhs)
 
bool operator>= (const float &rhs)
 
bool operator>= (const FieldTemplate< TYPE_RHS > &rhs)
 
bool operator<= (const float &rhs)
 
bool operator<= (const FieldTemplate< TYPE_RHS > &rhs)
 
void clear () override
 Reset the field to it's initial value. More...
 
- Public Member Functions inherited from EmbeddedProto::Field
 Field ()=default
 
virtual ~Field ()=default
 
uint32_t serialized_size () const
 Calculate the size of this message when serialized. More...
 

Additional Inherited Members

- Public Types inherited from EmbeddedProto::FieldTemplate< float >
typedef float FIELD_TYPE
 

Constructor & Destructor Documentation

◆ floatfixed() [1/3]

EmbeddedProto::floatfixed::floatfixed ( )
inline

◆ floatfixed() [2/3]

EmbeddedProto::floatfixed::floatfixed ( const float &  v)
inline

◆ floatfixed() [3/3]

EmbeddedProto::floatfixed::floatfixed ( const float &&  v)
inline

◆ ~floatfixed()

EmbeddedProto::floatfixed::~floatfixed ( )
overridedefault

Member Function Documentation

◆ deserialize()

Error EmbeddedProto::floatfixed::deserialize ( ReadBufferInterface buffer)
finalvirtual

Implements EmbeddedProto::Field.

◆ serialize()

Error EmbeddedProto::floatfixed::serialize ( WriteBufferInterface buffer) const
finalvirtual

Implements EmbeddedProto::Field.

◆ serialize_with_id()

Error EmbeddedProto::floatfixed::serialize_with_id ( uint32_t  field_number,
WriteBufferInterface buffer 
) const
finalvirtual

Implements EmbeddedProto::Field.


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