ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
MMappedVector< T >::data_t Struct Reference

On-disk layout stored at the start of the backing file. More...

Public Attributes

uint64_t magic
 File-type identifier.
uint16_t version
 Format version (currently 1).
uint16_t elem_size
 sizeof(T) at write time
uint32_t _reserved
 Padding to 16-byte boundary, must be 0.
unsigned long nb_elements
 Number of elements currently stored.
unsigned long capacity
 Maximum elements before the next grow.
d []
 Flexible array of elements.

Detailed Description

template<typename T>
struct MMappedVector< T >::data_t

On-disk layout stored at the start of the backing file.

d is a flexible array member holding the actual elements.

Definition at line 43 of file MMappedVector.h.

Member Data Documentation

◆ _reserved

template<typename T>
uint32_t MMappedVector< T >::data_t::_reserved

Padding to 16-byte boundary, must be 0.

Definition at line 47 of file MMappedVector.h.

◆ capacity

template<typename T>
unsigned long MMappedVector< T >::data_t::capacity

Maximum elements before the next grow.

Definition at line 49 of file MMappedVector.h.

◆ d

template<typename T>
T MMappedVector< T >::data_t::d[]

Flexible array of elements.

Definition at line 50 of file MMappedVector.h.

◆ elem_size

template<typename T>
uint16_t MMappedVector< T >::data_t::elem_size

sizeof(T) at write time

Definition at line 46 of file MMappedVector.h.

◆ magic

template<typename T>
uint64_t MMappedVector< T >::data_t::magic

File-type identifier.

Definition at line 44 of file MMappedVector.h.

◆ nb_elements

template<typename T>
unsigned long MMappedVector< T >::data_t::nb_elements

Number of elements currently stored.

Definition at line 48 of file MMappedVector.h.

◆ version

template<typename T>
uint16_t MMappedVector< T >::data_t::version

Format version (currently 1).

Definition at line 45 of file MMappedVector.h.


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