Single connected list

Class Genode::List::Element

Public functions

Element

Default constructor

next

Return next element in list

Return

LT *

Template class Genode::List

Template argument
typename LT List element type

Public functions

List

Constructor

Start with an empty list.

first

Return first list element

Return

LT *

insert

Insert element into list

Argument
LT * le

remove

Remove element from list

Argument
LT * le

Template class Genode::List_element

Helper for using member variables as list elements

Template argument
typename T Type of compound object to be organized in a list
Inherits from

public List<List_element<T> >::Element

This helper allow the creation of lists that use member variables to connect their elements. This way, the organized type does not need to publicly inherit List<LT>::Element. Furthermore objects can easily be organized in multiple lists by embedding multiple List_element member variables.

Public functions

List_element

Constructor

Argument
T * object

object

Return

T *