libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MMap Class Reference

#include <mmap.h>

Inheritance diagram for MMap:
Collaboration diagram for MMap:

Public Types

enum  OpenFlags {
  NoImmMap = (1<<0),
  Public = (1<<1),
  ReadOnly = (1<<2),
  UnMapped = (1<<3),
  Moveable = (1<<4),
  Fallback = (1 << 5)
}
 

Public Member Functions

 MMap (FileFd &F, unsigned long Flags)
 
 MMap (unsigned long Flags)
 
virtual ~MMap ()
 
void AddSize (unsigned long long const size)
 
void * Data ()
 
 operator void * ()
 
unsigned long long Size ()
 
bool Sync ()
 
bool Sync (unsigned long Start, unsigned long Stop)
 
bool validData () const
 

Protected Member Functions

bool Close (bool DoSync=true)
 
bool Map (FileFd &Fd)
 

Protected Attributes

void * Base
 
unsigned long Flags
 
unsigned long long iSize
 
FileFdSyncToFd
 

Member Enumeration Documentation

Enumerator
NoImmMap 
Public 
ReadOnly 
UnMapped 
Moveable 
Fallback 

Constructor & Destructor Documentation

MMap::MMap ( FileFd F,
unsigned long  Flags 
)
MMap::MMap ( unsigned long  Flags)
virtual MMap::~MMap ( )
virtual

Member Function Documentation

void MMap::AddSize ( unsigned long long const  size)
inline

References iSize.

bool MMap::Close ( bool  DoSync = true)
protected
void* MMap::Data ( )
inline

References Base.

Referenced by pkgCache::DataEnd().

Here is the caller graph for this function:

bool MMap::Map ( FileFd Fd)
protected
MMap::operator void * ( )
inline

References Base.

unsigned long long MMap::Size ( )
inline

References iSize.

Referenced by pkgCache::DataEnd().

Here is the caller graph for this function:

bool MMap::Sync ( )

Referenced by pkgCache::Sync().

Here is the caller graph for this function:

bool MMap::Sync ( unsigned long  Start,
unsigned long  Stop 
)
bool MMap::validData ( ) const
inline

References Base.

Member Data Documentation

void* MMap::Base
protected

Referenced by Data(), operator void *(), and validData().

unsigned long MMap::Flags
protected
unsigned long long MMap::iSize
protected

Referenced by AddSize(), and Size().

FileFd* MMap::SyncToFd
protected

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