NCBI C++ ToolKit
Public Attributes | List of all members
rapidjson::MemoryPoolAllocator< BaseAllocator >::ChunkHeader Struct Reference

Search Toolkit Book for rapidjson::MemoryPoolAllocator::ChunkHeader

Chunk header for perpending to each chunk. More...

+ Collaboration diagram for rapidjson::MemoryPoolAllocator< BaseAllocator >::ChunkHeader:

Public Attributes

size_t capacity
 Capacity of the chunk in bytes (excluding the header itself). More...
 
size_t size
 Current size of allocated memory in bytes. More...
 
ChunkHeadernext
 Next chunk in the linked list. More...
 

Detailed Description

template<typename BaseAllocator = CrtAllocator>
struct rapidjson::MemoryPoolAllocator< BaseAllocator >::ChunkHeader

Chunk header for perpending to each chunk.

Chunks are stored as a singly linked list.

Definition at line 256 of file allocators.h.

Member Data Documentation

◆ capacity

template<typename BaseAllocator = CrtAllocator>
size_t rapidjson::MemoryPoolAllocator< BaseAllocator >::ChunkHeader::capacity

Capacity of the chunk in bytes (excluding the header itself).

Definition at line 257 of file allocators.h.

Referenced by rapidjson::MemoryPoolAllocator< BaseAllocator >::MemoryPoolAllocator().

◆ next

template<typename BaseAllocator = CrtAllocator>
ChunkHeader* rapidjson::MemoryPoolAllocator< BaseAllocator >::ChunkHeader::next

◆ size

template<typename BaseAllocator = CrtAllocator>
size_t rapidjson::MemoryPoolAllocator< BaseAllocator >::ChunkHeader::size

Current size of allocated memory in bytes.

Definition at line 258 of file allocators.h.


The documentation for this struct was generated from the following file:
Modified on Fri Sep 20 14:57:55 2024 by modify_doxy.py rev. 669887