OpenTTD Source  20240919-master-gdf0233f4c2
SmallStackItem< Titem, Tindex > Struct Template Reference

Base class for SmallStack. More...

#include <smallstack_type.hpp>

Inheritance diagram for SmallStackItem< Titem, Tindex >:
SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size > SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::PooledSmallStack

Public Member Functions

 SmallStackItem (const Titem &value, Tindex next)
 Create a new item. More...
 

Data Fields

Tindex next
 Pool index of next item.
 
Titem value
 Value of current item.
 

Detailed Description

template<typename Titem, typename Tindex>
struct SmallStackItem< Titem, Tindex >

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.

Constructor & Destructor Documentation

◆ SmallStackItem()

template<typename Titem , typename Tindex >
SmallStackItem< Titem, Tindex >::SmallStackItem ( const Titem &  value,
Tindex  next 
)
inline

Create a new item.

Parameters
valueValue of the item.
nextNext item in the stack.

Definition at line 103 of file smallstack_type.hpp.


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