OpenTTD Source 20241224-master-gf74b0cf984
|
Base class for SmallStack. More...
#include <smallstack_type.hpp>
Public Member Functions | |
SmallStackItem (const Titem &value, Tindex next) | |
Create a new item. | |
Data Fields | |
Tindex | next |
Pool index of next item. | |
Titem | value |
Value of current item. | |
Base class for SmallStack.
We cannot add this into SmallStack itself as certain compilers don't like it.
Definition at line 94 of file smallstack_type.hpp.
|
inline |
Create a new item.
value | Value of the item. |
next | Next item in the stack. |
Definition at line 103 of file smallstack_type.hpp.
Tindex SmallStackItem< Titem, Tindex >::next |
Pool index of next item.
Definition at line 95 of file smallstack_type.hpp.
Referenced by SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Branch(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Contains(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::IsEmpty(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::operator=(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Pop(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Push(), and SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::~SmallStack().
Titem SmallStackItem< Titem, Tindex >::value |
Value of current item.
Definition at line 96 of file smallstack_type.hpp.
Referenced by SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Contains(), FindNearestHangar(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::IsEmpty(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::operator=(), SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Pop(), and SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Push().