libept
Public Member Functions | List of all members
ept::sys::MMap Class Reference

Wraps a mmapped memory area, unmapping it on destruction. More...

#include <sys.h>

Public Member Functions

 MMap (const MMap &)=delete
 
 MMap (MMap &&)
 
 MMap (void *addr, size_t length)
 
 ~MMap ()
 
MMapoperator= (const MMap &)=delete
 
MMapoperator= (MMap &&)
 
size_t size () const
 
void munmap ()
 
template<typename T >
 operator const T * () const
 
template<typename T >
 operator T* () const
 

Detailed Description

Wraps a mmapped memory area, unmapping it on destruction.

MMap objects can be used as normal pointers

Constructor & Destructor Documentation

◆ MMap() [1/3]

ept::sys::MMap::MMap ( const MMap )
delete

◆ MMap() [2/3]

ept::sys::MMap::MMap ( MMap &&  o)

◆ MMap() [3/3]

ept::sys::MMap::MMap ( void *  addr,
size_t  length 
)

◆ ~MMap()

ept::sys::MMap::~MMap ( )

References munmap().

Member Function Documentation

◆ munmap()

void ept::sys::MMap::munmap ( )

Referenced by operator=(), size(), and ~MMap().

◆ operator const T *()

template<typename T >
ept::sys::MMap::operator const T * ( ) const
inline

◆ operator T*()

template<typename T >
ept::sys::MMap::operator T* ( ) const
inline

◆ operator=() [1/2]

MMap& ept::sys::MMap::operator= ( const MMap )
delete

◆ operator=() [2/2]

MMap & ept::sys::MMap::operator= ( MMap &&  o)

References munmap().

◆ size()

size_t ept::sys::MMap::size ( ) const
inline

References munmap().


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