FastArduino
v1.9 alpha
C++ library to build fast but small Arduino/AVR projects
|
The abstract base class of all LifeCycle<T>
.
More...
#include <fastarduino/lifecycle.h>
Public Member Functions | |
uint8_t | id () const |
The unique identifier of this lifecycle-managed instance, as provided by the LifeCycleManager it was registered with. More... | |
AbstractLifeCycleManager * | manager () const |
A pointer to the AbstractLifeCycleManager handling this instance. More... | |
Friends | |
class | AbstractLifeCycleManager |
The abstract base class of all LifeCycle<T>
.
Once registered with a LifeCycleManager, it holds a unique id and the reference to its LifeCycleManager.
You shall normally never use this class directly, but only its template subclass LifeCycle<T>
.
Definition at line 67 of file lifecycle.h.
|
inline |
The unique identifier of this lifecycle-managed instance, as provided by the LifeCycleManager it was registered with.
When 0
, it means this instance has not been registered yet, or it has been unregistered since.
Definition at line 94 of file lifecycle.h.
|
inline |
A pointer to the AbstractLifeCycleManager handling this instance.
When nullptr
, it means this instance has not been registered yet, or it has been unregistered since.
Definition at line 112 of file lifecycle.h.