maxon::BaseList is a class template for double linked lists. Elements of such a list should typically be access with iterators and not with indices.
A new list object can simply be created using the class template:
The complete content of the BaseList can be deleted with:
A maxon::BaseList stores maxon::BaseListNode elements. Such nodes contain the actual stored value and also references to the previous and next node.
New elements are added to the list with:
If a given maxon::BaseList contains any elements can be checked with:
A specific element stored in the maxon::BaseList can be accessed by its index:
Single elements of the maxon::BaseList can be removed with:
The overall maxon::BaseList can be resized with:
Using iterators it is easily possible to iterate over all elements stored in the maxon::BaseList:
Utility functions are: