Blender V5.0
blender::StackChunk< T > Struct Template Reference

#include <BLI_stack.hh>

Public Member Functions

int64_t capacity () const

Public Attributes

StackChunkbelow
StackChunkabove
Tbegin
Tcapacity_end

Detailed Description

template<typename T>
struct blender::StackChunk< T >

A StackChunk references a contiguous memory buffer. Multiple StackChunk instances are linked in a double linked list.

Definition at line 40 of file BLI_stack.hh.

Member Function Documentation

◆ capacity()

template<typename T>
int64_t blender::StackChunk< T >::capacity ( ) const
inline

Definition at line 50 of file BLI_stack.hh.

References begin, and capacity_end.

Member Data Documentation

◆ above

◆ begin

template<typename T>
T* blender::StackChunk< T >::begin

Pointer to the first element of the referenced buffer.

Definition at line 46 of file BLI_stack.hh.

Referenced by capacity().

◆ below

template<typename T>
StackChunk* blender::StackChunk< T >::below

The below chunk contains the elements that have been pushed on the stack before.

Definition at line 42 of file BLI_stack.hh.

◆ capacity_end

template<typename T>
T* blender::StackChunk< T >::capacity_end

Pointer to one element past the end of the referenced buffer.

Definition at line 48 of file BLI_stack.hh.

Referenced by capacity().


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