util::scoped_mmap Class Reference

#include <mmap.hh>

List of all members.

Public Member Functions

 scoped_mmap ()
 scoped_mmap (void *data, std::size_t size)
 ~scoped_mmap ()
void * get () const
const uint8_t * begin () const
const uint8_t * end () const
std::size_t size () const
void reset (void *data, std::size_t size)
void reset ()
void * steal ()


Detailed Description

Definition at line 18 of file mmap.hh.


Constructor & Destructor Documentation

util::scoped_mmap::scoped_mmap (  )  [inline]

Definition at line 20 of file mmap.hh.

util::scoped_mmap::scoped_mmap ( void *  data,
std::size_t  size 
) [inline]

Definition at line 21 of file mmap.hh.

util::scoped_mmap::~scoped_mmap (  ) 

Definition at line 40 of file mmap.cc.

References util::SyncOrThrow(), util::UnmapOrThrow(), and util::Exception::what().

Here is the call graph for this function:


Member Function Documentation

const uint8_t* util::scoped_mmap::begin (  )  const [inline]

Definition at line 26 of file mmap.hh.

const uint8_t* util::scoped_mmap::end (  )  const [inline]

Definition at line 27 of file mmap.hh.

void* util::scoped_mmap::get (  )  const [inline]

Definition at line 24 of file mmap.hh.

void util::scoped_mmap::reset (  )  [inline]

Definition at line 36 of file mmap.hh.

void util::scoped_mmap::reset ( void *  data,
std::size_t  size 
) [inline]

Definition at line 30 of file mmap.hh.

std::size_t util::scoped_mmap::size (  )  const [inline]

Definition at line 28 of file mmap.hh.

void* util::scoped_mmap::steal (  )  [inline]

Definition at line 40 of file mmap.hh.


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:34:50 2017 for Moses by  doxygen 1.5.9