|
VibroSonics
v1.0.2-mozzi-implementation-329-gbe4e638
Arduino Library for Translating Audio into Vibrations
|
#include <Grain.h>
Public Member Functions | |
| GrainList () | |
| Default constructor. | |
| void | pushGrain (Grain *grain) |
| Pushes a grain to the tail of the list. | |
| void | clearList () |
| Deletes all grains in the list. | |
| GrainNode * | getHead () |
| Returns the head of the list. | |
| void | updateAndReap () |
| Updates grains and deletes finished dynamic grains. | |
Class for the management of a linked list of grains
|
inline |
Default constructor.
| void GrainList::clearList | ( | ) |
Deletes all grains in the list.
Deletes all grains in the GrainList.
| GrainNode * GrainList::getHead | ( | ) |
| void GrainList::pushGrain | ( | Grain * | grain | ) |
Pushes a grain to the tail of the list.
Pushes a grain to the tail of the GrainList.
| grain | the grain to be pushed |
| void GrainList::updateAndReap | ( | ) |
Updates grains and deletes finished dynamic grains.
Runs update on all grains in the list. Deletes dynamic grains if they have finished their lifespan and are ready to be "reaped".