HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::UID::Abstract< _type > Struct Template Reference

Helper template parent class for all UID's implementation. More...

#include <uids.h>

+ Inheritance diagram for HF::UID::Abstract< _type >:
+ Collaboration diagram for HF::UID::Abstract< _type >:

Public Member Functions

uint8_t type () const
 Type of the UID. More...
 
- Public Member Functions inherited from HF::UID::UID_T
virtual int compare (const UID_T &other) const
 Compare the current UID with the given UID. More...
 
uint16_t size () const
 Number bytes needed to serialize the message. More...
 
uint16_t pack (Common::ByteArray &array, uint16_t offset=0) const
 Write the object on to a ByteArray so it can be sent over the network. More...
 
uint16_t unpack (const Common::ByteArray &array, uint16_t offset=0)
 Read a message from a ByteArray. More...
 
- Public Member Functions inherited from HF::Common::Serializable
virtual ~Serializable ()
 Destructor.
 
- Public Member Functions inherited from HF::Common::Cloneable< UID_T >
virtual UID_T * clone () const=0
 Create a clone object of the object where this method is being called. More...
 

Additional Inherited Members

- Static Public Attributes inherited from HF::UID::UID_T
static constexpr uint16_t min_size
 Minimum pack/unpack required data size.
 

Detailed Description

template<uint8_t _type>
struct HF::UID::Abstract< _type >

Helper template parent class for all UID's implementation.

Template Parameters
_typetype value for the UID.

Definition at line 133 of file uids.h.

Member Function Documentation

◆ type()

template<uint8_t _type>
uint8_t HF::UID::Abstract< _type >::type ( ) const
inlinevirtual

Type of the UID.

See also
HF::UID::Type.
Returns
type of the UID.

Implements HF::UID::UID_T.

Definition at line 135 of file uids.h.

136  {
137  return _type;
138  }

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