DS2482-RK
|
Used internally to hold a list of command objects to run. More...
#include <DS2482-RK.h>
Public Member Functions | |
virtual int | loop () |
Called from DS2482::loop() when this command list is the currently executing command list. | |
void | removeFront () |
Removes the DS2482Command at the front of the queue and deletes it. | |
void | clear () |
Clears all of the DS2482Command objects from the queue and deletes them. | |
void | push (DS2482Command *cmd) |
Adds a DS2482Command subclass to the end of this queue. More... | |
Used internally to hold a list of command objects to run.
void DS2482CommandList::push | ( | DS2482Command * | cmd | ) |
Adds a DS2482Command subclass to the end of this queue.
Ownership of the object transfers and it will deleted when it's no longer used. Thus you cannot pass a stack-allocated object to this method.