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

#include <Fields.h>

Inheritance diagram for EmbeddedProto::boolean:
Inheritance graph
Collaboration diagram for EmbeddedProto::boolean:
Collaboration graph

Public Member Functions

 boolean ()
 boolean (const bool &v)
 boolean (const bool &&v)
 ~boolean () 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< bool >
 FieldTemplate ()=default
 FieldTemplate (const bool &v)
 FieldTemplate (const bool &&v)
 ~FieldTemplate () override=default
void set (const bool &v)
void set (const bool &&v)
void operator= (const bool &v)
void operator= (const bool &&v)
const bool & get () const
bool & get ()
 operator bool () const
bool operator== (const bool &rhs)
bool operator== (const FieldTemplate< TYPE_RHS > &rhs)
bool operator!= (const bool &rhs)
bool operator!= (const FieldTemplate< TYPE_RHS > &rhs)
bool operator> (const bool &rhs)
bool operator> (const FieldTemplate< TYPE_RHS > &rhs)
bool operator< (const bool &rhs)
bool operator< (const FieldTemplate< TYPE_RHS > &rhs)
bool operator>= (const bool &rhs)
bool operator>= (const FieldTemplate< TYPE_RHS > &rhs)
bool operator<= (const bool &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< bool >
typedef bool FIELD_TYPE

Constructor & Destructor Documentation

◆ boolean() [1/3]

EmbeddedProto::boolean::boolean ( )

◆ boolean() [2/3]

EmbeddedProto::boolean::boolean ( const bool &  v)

◆ boolean() [3/3]

EmbeddedProto::boolean::boolean ( const bool &&  v)

◆ ~boolean()

EmbeddedProto::boolean::~boolean ( )

Member Function Documentation

◆ deserialize()

Error EmbeddedProto::boolean::deserialize ( ReadBufferInterface buffer)

Implements EmbeddedProto::Field.

◆ serialize()

Error EmbeddedProto::boolean::serialize ( WriteBufferInterface buffer) const

Implements EmbeddedProto::Field.

◆ serialize_with_id()

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

Implements EmbeddedProto::Field.

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