M5UnitUnified 0.0.2 git rev:a353e8c
Loading...
Searching...
No Matches
m5::unit::UnitUnified Class Reference

For managing and leading units. More...

#include <M5UnitUnified.hpp>

Public Types

using container_type = std::vector<Component*>
 

Public Member Functions

bool begin ()
 Begin of all units under management.
 
void update (const bool force=false)
 Update of all units under management.
 
std::string debugInfo () const
 Output information for debug.
 
Constructor
Warning
COPY PROHIBITED
 UnitUnified (const UnitUnified &)=delete
 
 UnitUnified (UnitUnified &&) noexcept=default
 
Assignment
Warning
COPY PROHIBITED
UnitUnifiedoperator= (const UnitUnified &)=delete
 
UnitUnifiedoperator= (UnitUnified &&) noexcept=default
 
Adding unit to be managed
bool add (Component &u, m5::hal::bus::Bus *bus)
 
bool add (Component &u, TwoWire &wire)
 

Protected Member Functions

bool add_children (Component &u)
 
bool add (Component &u, m5::unit::Adapter *a)
 
std::string make_unit_info (const Component *u, const uint8_t indent=0) const
 

Protected Attributes

container_type _units {}
 

Detailed Description

For managing and leading units.