Embedded Template Library  1.0
 All Classes Files Functions Variables Typedefs Friends Modules Pages
etl::list_base Class Reference

#include <list_base.h>

Public Types

typedef size_t size_type
 The type used for determining the size of list.
 

Public Member Functions

size_type size () const
 Gets the size of the list.
 
size_type max_size () const
 Gets the maximum possible 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
 

Protected Member Functions

 list_base (size_type max_size)
 The constructor that is called from derived classes.
 

Protected Attributes

size_type next_free
 The index of the next free node.
 
size_type current_size
 The number of the used nodes.
 
const size_type MAX_SIZE
 The maximum size of the list.
 

Detailed Description

The base class for all lists.

Member Function Documentation

size_t etl::list_base::available ( ) const
inline

Returns the remaining capacity.

Returns
The remaining capacity.

The documentation for this class was generated from the following file: