This is a sample code for memory mapped file share. The mapped_region is d class that is responsible for it Now me before digging in deep I cant follow why such declaration are used. can any one please explain this to me ?
class mapped_region
{
// Non-copyable
mapped_region(const mapped_region &);
// Non-assignable
mapped_region &operator=(const mapped_region &);
public:
typedef /*implementation-defined*/ offset_t;
typedef /*implementation-defined*/ accessmode_t;
static const accessmode_t invalid_mode;
static const accessmode_t read_only;
static const accessmode_t read_write;
static const accessmode_t copy_on_write;
mapped_region();
mapped_region( const memory_mappable & mappable
, accessmode_t mode
, offset_t mappable_offset
, std::size_t size = 0
, const void * address = 0);
mapped_region(mapped_region &&other);
std::size_t get_size() const;
void* get_address() const;
offset_t get_offset() const;
accessmode_t get_mode() const;
void flush(std::size_t region_offset = 0, std::size_t numbytes = 0);
void swap(mapped_region &other);
~mapped_region();
};
In this example the
// Non-copyable
mapped_region(const mapped_region &);
what does that mean ?