HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Core::AttributeReporting::Event::Rule Struct Reference

Report event rule. More...

#include <attribute_reporting.h>

+ Inheritance diagram for HF::Core::AttributeReporting::Event::Rule:
+ Collaboration diagram for HF::Core::AttributeReporting::Event::Rule:

Public Member Functions

void add (const Entry &entry)
 Add the given entry to rule. More...
 
void clear ()
 Remove all entries in this rule.
 
uint16_t entries_count ()
 Number of entries present in this rule. More...
 
iterator begin ()
 Get a iterator to the start of the entries in this rule. More...
 
iterator end ()
 Get a iterator to the end of the entries in this rule. More...
 
const_iterator cbegin () const
 Get a constant iterator to the start of the entries in this rule. More...
 
const_iterator cend () const
 Get constant iterator to the end of the entries in this rule. More...
 
- Public Member Functions inherited from HF::Core::AttributeReporting::Rule
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...
 

Static Public Attributes

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

Protected Attributes

Container entries
 Container for the entries of this rule.
 

Additional Inherited Members

- Data Fields inherited from HF::Core::AttributeReporting::Rule
Reference report
 Report reference this rule generates.
 
Protocol::Address destination
 Device/unit that will receive the report.
 
- Protected Member Functions inherited from HF::Core::AttributeReporting::Rule
 Rule (Type type)
 Constructor. More...
 

Detailed Description

Report event rule.

Definition at line 446 of file attribute_reporting.h.

Member Function Documentation

◆ add()

void HF::Core::AttributeReporting::Event::Rule::add ( const Entry entry)
inline

Add the given entry to rule.

Parameters
[in]entryreference to the entry to add to this rule.

Definition at line 472 of file attribute_reporting.h.

References entries.

473  {
474  entries.push_front(entry);
475  }
Container entries
Container for the entries of this rule.

◆ begin()

iterator HF::Core::AttributeReporting::Event::Rule::begin ( )
inline

Get a iterator to the start of the entries in this rule.

Returns
iterator to the start of the entries present in this rule.

Definition at line 500 of file attribute_reporting.h.

References entries.

501  {
502  return entries.begin();
503  }
Container entries
Container for the entries of this rule.

◆ cbegin()

const_iterator HF::Core::AttributeReporting::Event::Rule::cbegin ( ) const
inline

Get a constant iterator to the start of the entries in this rule.

Returns
iterator to the start of the entries present in this rule.

Definition at line 520 of file attribute_reporting.h.

References entries.

521  {
522  return entries.cbegin();
523  }
Container entries
Container for the entries of this rule.

◆ cend()

const_iterator HF::Core::AttributeReporting::Event::Rule::cend ( ) const
inline

Get constant iterator to the end of the entries in this rule.

Returns
iterator to the end of the entries present in this rule.

Definition at line 530 of file attribute_reporting.h.

References entries.

531  {
532  return entries.cend();
533  }
Container entries
Container for the entries of this rule.

◆ end()

iterator HF::Core::AttributeReporting::Event::Rule::end ( )
inline

Get a iterator to the end of the entries in this rule.

Returns
iterator to the end of the entries present in this rule.

Definition at line 510 of file attribute_reporting.h.

References entries.

511  {
512  return entries.end();
513  }
Container entries
Container for the entries of this rule.

◆ entries_count()

uint16_t HF::Core::AttributeReporting::Event::Rule::entries_count ( )
inline

Number of entries present in this rule.

Returns
number of entries present in this rule.

Definition at line 490 of file attribute_reporting.h.

References entries.

491  {
492  return std::distance(entries.begin(), entries.end());
493  }
Container entries
Container for the entries of this rule.

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