OpenTTD Source 20241224-master-gf74b0cf984
SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::PooledSmallStack Struct Reference

SmallStack item that can be kept in a pool. More...

#include <smallstack_type.hpp>

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

Data Fields

Tindex branch_count
 Number of branches in the tree structure this item is parent of.
 
- Data Fields inherited from SmallStackItem< Titem, Tindex >
Tindex next
 Pool index of next item.
 
Titem value
 Value of current item.
 

Additional Inherited Members

- Public Member Functions inherited from SmallStackItem< Titem, Tindex >
 SmallStackItem (const Titem &value, Tindex next)
 Create a new item.
 

Detailed Description

template<typename Titem, typename Tindex, Titem Tinvalid, Tindex Tgrowth_step, Tindex Tmax_size>
struct SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::PooledSmallStack

SmallStack item that can be kept in a pool.

Definition at line 143 of file smallstack_type.hpp.

Field Documentation

◆ branch_count

template<typename Titem , typename Tindex , Titem Tinvalid, Tindex Tgrowth_step, Tindex Tmax_size>
Tindex SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::PooledSmallStack::branch_count

Number of branches in the tree structure this item is parent of.

Definition at line 144 of file smallstack_type.hpp.

Referenced by SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Pop(), and SmallStack< Titem, Tindex, Tinvalid, Tgrowth_step, Tmax_size >::Push().


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