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

#include <forward_list_base.h>

Public Types

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

Public Member Functions

size_type size () const
 Gets the size of the forward_list.
 
size_type max_size () const
 Gets the maximum possible size of the forward_list.
 
bool empty () const
 Checks to see if the forward_list is empty.
 
bool full () const
 Checks to see if the forward_list is full.
 
size_t available () const
 

Protected Member Functions

 forward_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 count
 The number of the used nodes.
 
const size_type MAX_SIZE
 The maximum size of the forward_list.
 

Detailed Description

The base class for all forward_lists.

Member Function Documentation

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

Returns the remaining capacity.

Returns
The remaining capacity.

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