Blender V5.3
stack.cc File Reference
#include <cstdlib>
#include <cstring>
#include "BLI_utildefines.hh"
#include "MEM_guardedalloc.h"
#include "BLI_stack_c.hh"
#include "BLI_strict_flags.hh"

Go to the source code of this file.

Classes

struct  blender::StackChunk
struct  blender::BLI_Stack

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define USE_TOTELEM
#define CHUNK_EMPTY   size_t(-1)
#define CHUNK_SIZE_DEFAULT   (1 << 16)
#define CHUNK_ELEM_MIN   32

Functions

static void * blender::stack_get_last_elem (BLI_Stack *stack)
static size_t blender::stack_chunk_elem_max_calc (const size_t elem_size, size_t chunk_size)
BLI_Stack * blender::BLI_stack_new_ex (size_t elem_size, const char *description, size_t chunk_size) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BLI_Stack * blender::BLI_stack_new (size_t elem_size, const char *description) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
static void blender::stack_free_chunks (StackChunk *data)
void blender::BLI_stack_free (BLI_Stack *stack) ATTR_NONNULL()
void * blender::BLI_stack_push_r (BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void blender::BLI_stack_push (BLI_Stack *stack, const void *src) ATTR_NONNULL()
void blender::BLI_stack_pop (BLI_Stack *stack, void *dst) ATTR_NONNULL()
void blender::BLI_stack_pop_n (BLI_Stack *stack, void *dst, unsigned int n) ATTR_NONNULL()
void blender::BLI_stack_pop_n_reverse (BLI_Stack *stack, void *dst, unsigned int n) ATTR_NONNULL()
void * blender::BLI_stack_peek (BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void blender::BLI_stack_discard (BLI_Stack *stack) ATTR_NONNULL()
void blender::BLI_stack_clear (BLI_Stack *stack) ATTR_NONNULL()
size_t blender::BLI_stack_count (const BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool blender::BLI_stack_is_empty (const BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()

Macro Definition Documentation

◆ CHUNK_ELEM_MIN

#define CHUNK_ELEM_MIN   32

Definition at line 27 of file stack.cc.

◆ CHUNK_EMPTY

#define CHUNK_EMPTY   size_t(-1)

Definition at line 23 of file stack.cc.

Referenced by blender::BLI_stack_discard().

◆ CHUNK_SIZE_DEFAULT

#define CHUNK_SIZE_DEFAULT   (1 << 16)

Definition at line 25 of file stack.cc.

◆ USE_TOTELEM

#define USE_TOTELEM

Definition at line 21 of file stack.cc.