20 #if !defined(__MITSUBA_CORE_MMAP_H_)
21 #define __MITSUBA_CORE_MMAP_H_
24 #include <boost/scoped_ptr.hpp>
44 const void *getData()
const;
47 size_t getSize()
const;
55 void resize(
size_t size);
58 const fs::path &getFilename()
const;
61 bool isReadOnly()
const;
80 virtual ~MemoryMappedFile();
82 struct MemoryMappedFilePrivate;
83 boost::scoped_ptr<MemoryMappedFilePrivate> d;
#define MTS_EXPORT_CORE
Definition: getopt.h:29
Basic cross-platform abstraction for memory mapped files.
Definition: mmap.h:32
#define MTS_DECLARE_CLASS()
This macro must be used in the initial definition in classes that derive from Object.
Definition: class.h:158
Reference counting helper.
Definition: ref.h:40
Parent of all Mitsuba classes.
Definition: object.h:38
virtual std::string toString() const
Return a human-readable string representation of the object's contents.