Public Member Functions | Private Attributes | List of all members
sajson::dynamic_allocation Class Reference

#include <sajson.h>

Public Member Functions

 dynamic_allocation (size_t initial_ast_capacity_=0, size_t initial_stack_capacity_=0)
 

Private Attributes

size_t initial_ast_capacity
 
size_t initial_stack_capacity
 

Detailed Description

Allocation policy that uses dynamically-growing buffers for both the parse stack and the AST. This allocation policy minimizes peak memory usage at the cost of some allocation and copying churn.

Definition at line 1087 of file sajson.h.

Constructor & Destructor Documentation

◆ dynamic_allocation()

sajson::dynamic_allocation::dynamic_allocation ( size_t  initial_ast_capacity_ = 0,
size_t  initial_stack_capacity_ = 0 
)
inline

Creates a dynamic_allocation policy with the given initial AST and stack buffer sizes.

Definition at line 1306 of file sajson.h.

Member Data Documentation

◆ initial_ast_capacity

size_t sajson::dynamic_allocation::initial_ast_capacity
private

Definition at line 1338 of file sajson.h.

◆ initial_stack_capacity

size_t sajson::dynamic_allocation::initial_stack_capacity
private

Definition at line 1339 of file sajson.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:23