OpenVDB
9.0.1
|
Handle to control the lifetime of a memory-mapped .vdb file. More...
#include <openvdb/io/io.h>
Public Types | |
using | Ptr = SharedPtr< MappedFile > |
using | Notifier = std::function< void(std::string)> |
Public Member Functions | |
~MappedFile () | |
MappedFile (const MappedFile &)=delete | |
MappedFile & | operator= (const MappedFile &)=delete |
std::string | filename () const |
Return the filename of the mapped file. More... | |
SharedPtr< std::streambuf > | createBuffer () const |
Return a new stream buffer for the mapped file. More... | |
void | setNotifier (const Notifier &) |
Register a function that will be called with this file's name when the file is unmapped. More... | |
void | clearNotifier () |
Deregister the notifier. More... | |
Friends | |
class | File |
class | ::TestMappedFile |
Handle to control the lifetime of a memory-mapped .vdb file.
using Notifier = std::function<void(std::string )> |
using Ptr = SharedPtr<MappedFile> |
~MappedFile | ( | ) |
|
delete |
void clearNotifier | ( | ) |
Deregister the notifier.
SharedPtr<std::streambuf> createBuffer | ( | ) | const |
Return a new stream buffer for the mapped file.
Typical usage is
The buffer must persist as long as the stream is open.
std::string filename | ( | ) | const |
Return the filename of the mapped file.
|
delete |
void setNotifier | ( | const Notifier & | ) |
Register a function that will be called with this file's name when the file is unmapped.
|
friend |
|
friend |