Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
list_base Class Reference
[list]
The base class for all lists. More...
#include <list.h>
Inherited by ilist< T >.
Data Structures | |
| struct | node_t |
| The node element in the list. More... | |
Public Types | |
| typedef size_t | size_type |
| The type used for determining the size of list. | |
Public Member Functions | |
| void | reverse () |
| Reverses the list. | |
| size_type | max_size () const |
| Gets the maximum possible size of the list. | |
| size_type | size () const |
| Gets the size of the list. | |
| bool | empty () const |
| Checks to see if the list is empty. | |
| bool | full () const |
| Checks to see if the list is full. | |
| size_t | available () const |
| Returns the remaining capacity. | |
| bool | is_trivial_list () const |
| Is the list a trivial length? | |
Protected Member Functions | |
| node_t & | get_head () |
| Get the head node. | |
| const node_t & | get_head () const |
| Get the head node. | |
| node_t & | get_tail () |
| Get the tail node. | |
| const node_t & | get_tail () const |
| Get the tail node. | |
| void | insert_node (node_t &position, node_t &node) |
| Insert a node before 'position'. | |
| void | join (node_t &left, node_t &right) |
| Join two nodes. | |
| list_base (etl::ipool &node_pool_, size_type max_size_) | |
| The constructor that is called from derived classes. | |
Protected Attributes | |
| etl::ipool * | p_node_pool |
| The pool of data nodes used in the list. | |
| node_t | terminal_node |
| The node that acts as the list start and end. | |
| const size_type | MAX_SIZE |
| The maximum size of the list. | |
| etl::debug_count | construct_count |
| Internal debugging. | |
Detailed Description
The base class for all lists.
Definition at line 139 of file list.h.
Member Typedef Documentation
| typedef size_t size_type |
The type used for determining the size of list.
Reimplemented in ilist< T >, and list< T, MAX_SIZE_ >.
Constructor & Destructor Documentation
Member Function Documentation
| size_t available | ( | ) | const |
| const node_t& get_head | ( | ) | const [protected] |
| const node_t& get_tail | ( | ) | const [protected] |
| size_type max_size | ( | ) | const |
Field Documentation
etl::debug_count construct_count [protected] |
The maximum size of the list.
Reimplemented in list< T, MAX_SIZE_ >.
etl::ipool* p_node_pool [protected] |
node_t terminal_node [protected] |
Generated on Tue Jul 12 2022 14:05:51 by
1.7.2