pstore2
Functions
region.cpp File Reference

A factory for memory-mapper objects which is used for both the initial file allocation and to grow files as allocations are performed in a transaction. More...

#include "pstore/core/region.hpp"
Include dependency graph for region.cpp:

Functions

std::unique_ptr< factory > pstore::region::get_factory (std::shared_ptr< file::file_handle > const &file, std::uint64_t full_size, std::uint64_t min_size)
 
std::unique_ptr< factory > pstore::region::get_factory (std::shared_ptr< file::in_memory > const &file, std::uint64_t full_size, std::uint64_t min_size)
 

Detailed Description

A factory for memory-mapper objects which is used for both the initial file allocation and to grow files as allocations are performed in a transaction.

The "real" library exclusively uses the file-based factory; the memory-based factory is used for unit testing.