EmbeddedProto
2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
|
#include <Fields.h>
Public Types | |
typedef TYPE | FIELD_TYPE |
Public Member Functions | |
FieldTemplate ()=default | |
FieldTemplate (const TYPE &v) | |
FieldTemplate (const TYPE &&v) | |
~FieldTemplate () override=default | |
void | set (const TYPE &v) |
void | set (const TYPE &&v) |
void | operator= (const TYPE &v) |
void | operator= (const TYPE &&v) |
const TYPE & | get () const |
TYPE & | get () |
operator TYPE () const | |
bool | operator== (const TYPE &rhs) |
bool | operator!= (const TYPE &rhs) |
bool | operator> (const TYPE &rhs) |
bool | operator< (const TYPE &rhs) |
bool | operator>= (const TYPE &rhs) |
bool | operator<= (const TYPE &rhs) |
template<class TYPE_RHS > | |
bool | operator== (const FieldTemplate< TYPE_RHS > &rhs) |
template<class TYPE_RHS > | |
bool | operator!= (const FieldTemplate< TYPE_RHS > &rhs) |
template<class TYPE_RHS > | |
bool | operator> (const FieldTemplate< TYPE_RHS > &rhs) |
template<class TYPE_RHS > | |
bool | operator< (const FieldTemplate< TYPE_RHS > &rhs) |
template<class TYPE_RHS > | |
bool | operator>= (const FieldTemplate< TYPE_RHS > &rhs) |
template<class TYPE_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 |
virtual Error | serialize_with_id (uint32_t field_number, WriteBufferInterface &buffer) const =0 |
virtual Error | serialize (WriteBufferInterface &buffer) const =0 |
virtual Error | deserialize (ReadBufferInterface &buffer)=0 |
uint32_t | serialized_size () const |
Calculate the size of this message when serialized. More... | |
typedef TYPE EmbeddedProto::FieldTemplate< TYPE >::FIELD_TYPE |
|
default |
|
inline |
|
inline |
|
overridedefault |
|
inlineoverridevirtual |
Reset the field to it's initial value.
Implements EmbeddedProto::Field.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |