|
CeresEngine 0.2.0
A game development framework
|
A helper class that maps a file into memory and allows accessing it as a regular C++ struct. More...
#include <CeresEngine/Foundation/SharedMemory.hpp>
Public Attributes | |
| SharedMemory | sharedMemory |
| The underlying shared memory object. | |
Static Public Attributes | |
| static const constexpr size_t | minimumLength = sizeof(T) |
The minimum size of the mapped file to fit an object of type T. | |
A helper class that maps a file into memory and allows accessing it as a regular C++ struct.
Files mapped through TSharedMemory are not compatible across builds or platforms.
| T | the mapped object type |
|
inline |
Creates a new unmapped TSharedMemory object.
|
inlineexplicit |
Creates a new TSharedMemory by mapping the file given path.
| path | The file path |
| mode | The shared memory access mode |
|
delete |
Copy of a TSharedMemory is not allowed.
|
defaultnoexcept |
Creates a new TSharedMemory by moving the contents of another.
| other | The instance to move from |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
true if the SharedMemory is valid and points to a mapped file.
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
Copy assignment of a TSharedMemory is not allowed.
|
defaultnoexcept |
Assigns the TSharedMemory by moving the contents of another.
| other | The instance to move from |
*this
|
inline |
Closes any handle and unmaps all memory.
|
inline |
Synchronizes any dirty data not synchronized with the file.
|
inlinenoexcept |
true if the SharedMemory is valid and points to a mapped file. The minimum size of the mapped file to fit an object of type T.
| SharedMemory CeresEngine::TSharedMemory< T >::sharedMemory |
The underlying shared memory object.