List container improvements and testing

- support range based for loops
 - add remove() method to remove a node
 - add clear() to empty entire list and delete nodes
 - add empty() helper
This commit is contained in:
Daniel Agar
2019-03-01 21:01:04 -05:00
parent 6c3e79f361
commit e2bf4b1894
15 changed files with 335 additions and 88 deletions
+1 -4
View File
@@ -78,11 +78,8 @@ protected:
*/
virtual void updateParams()
{
ModuleParams *child = _children.getHead();
while (child) {
for (const auto &child : _children) {
child->updateParams();
child = child->getSibling();
}
updateParamsImpl();