EmbeddedProto  2.0.0
EmbeddedProto is a C++ Protocol Buffer implementation specifically suitable for microcontrollers.
Public Types | Public Member Functions | List of all members
EmbeddedProto::FieldTemplate< TYPE > Class Template Reference

#include <Fields.h>

Inheritance diagram for EmbeddedProto::FieldTemplate< TYPE >:
Inheritance graph
[legend]
Collaboration diagram for EmbeddedProto::FieldTemplate< TYPE >:
Collaboration graph
[legend]

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...
 

Member Typedef Documentation

◆ FIELD_TYPE

template<class TYPE >
typedef TYPE EmbeddedProto::FieldTemplate< TYPE >::FIELD_TYPE

Constructor & Destructor Documentation

◆ FieldTemplate() [1/3]

template<class TYPE >
EmbeddedProto::FieldTemplate< TYPE >::FieldTemplate ( )
default

◆ FieldTemplate() [2/3]

template<class TYPE >
EmbeddedProto::FieldTemplate< TYPE >::FieldTemplate ( const TYPE &  v)
inline

◆ FieldTemplate() [3/3]

template<class TYPE >
EmbeddedProto::FieldTemplate< TYPE >::FieldTemplate ( const TYPE &&  v)
inline

◆ ~FieldTemplate()

template<class TYPE >
EmbeddedProto::FieldTemplate< TYPE >::~FieldTemplate ( )
overridedefault

Member Function Documentation

◆ clear()

template<class TYPE >
void EmbeddedProto::FieldTemplate< TYPE >::clear ( )
inlineoverridevirtual

Reset the field to it's initial value.

Implements EmbeddedProto::Field.

◆ get() [1/2]

template<class TYPE >
TYPE& EmbeddedProto::FieldTemplate< TYPE >::get ( )
inline

◆ get() [2/2]

template<class TYPE >
const TYPE& EmbeddedProto::FieldTemplate< TYPE >::get ( ) const
inline

◆ operator TYPE()

template<class TYPE >
EmbeddedProto::FieldTemplate< TYPE >::operator TYPE ( ) const
inline

◆ operator!=() [1/2]

template<class TYPE >
template<class TYPE_RHS >
bool EmbeddedProto::FieldTemplate< TYPE >::operator!= ( const FieldTemplate< TYPE_RHS > &  rhs)
inline

◆ operator!=() [2/2]

template<class TYPE >
bool EmbeddedProto::FieldTemplate< TYPE >::operator!= ( const TYPE &  rhs)
inline

◆ operator<() [1/2]

template<class TYPE >
template<class TYPE_RHS >
bool EmbeddedProto::FieldTemplate< TYPE >::operator< ( const FieldTemplate< TYPE_RHS > &  rhs)
inline

◆ operator<() [2/2]

template<class TYPE >
bool EmbeddedProto::FieldTemplate< TYPE >::operator< ( const TYPE &  rhs)
inline

◆ operator<=() [1/2]

template<class TYPE >
template<class TYPE_RHS >
bool EmbeddedProto::FieldTemplate< TYPE >::operator<= ( const FieldTemplate< TYPE_RHS > &  rhs)
inline

◆ operator<=() [2/2]

template<class TYPE >
bool EmbeddedProto::FieldTemplate< TYPE >::operator<= ( const TYPE &  rhs)
inline

◆ operator=() [1/2]

template<class TYPE >
void EmbeddedProto::FieldTemplate< TYPE >::operator= ( const TYPE &&  v)
inline

◆ operator=() [2/2]

template<class TYPE >
void EmbeddedProto::FieldTemplate< TYPE >::operator= ( const TYPE &  v)
inline

◆ operator==() [1/2]

template<class TYPE >
template<class TYPE_RHS >
bool EmbeddedProto::FieldTemplate< TYPE >::operator== ( const FieldTemplate< TYPE_RHS > &  rhs)
inline

◆ operator==() [2/2]

template<class TYPE >
bool EmbeddedProto::FieldTemplate< TYPE >::operator== ( const TYPE &  rhs)
inline

◆ operator>() [1/2]

template<class TYPE >
template<class TYPE_RHS >
bool EmbeddedProto::FieldTemplate< TYPE >::operator> ( const FieldTemplate< TYPE_RHS > &  rhs)
inline

◆ operator>() [2/2]

template<class TYPE >
bool EmbeddedProto::FieldTemplate< TYPE >::operator> ( const TYPE &  rhs)
inline

◆ operator>=() [1/2]

template<class TYPE >
template<class TYPE_RHS >
bool EmbeddedProto::FieldTemplate< TYPE >::operator>= ( const FieldTemplate< TYPE_RHS > &  rhs)
inline

◆ operator>=() [2/2]

template<class TYPE >
bool EmbeddedProto::FieldTemplate< TYPE >::operator>= ( const TYPE &  rhs)
inline

◆ set() [1/2]

template<class TYPE >
void EmbeddedProto::FieldTemplate< TYPE >::set ( const TYPE &&  v)
inline

◆ set() [2/2]

template<class TYPE >
void EmbeddedProto::FieldTemplate< TYPE >::set ( const TYPE &  v)
inline

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