TAO  2.1.2
Public Member Functions | Private Member Functions
TAO_MMAP_Allocator Class Reference

mmap-based allocator. More...

#include <MMAP_Allocator.h>

Inheritance diagram for TAO_MMAP_Allocator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TAO_MMAP_Allocator (void)
 Constructor.
virtual ~TAO_MMAP_Allocator (void)
 Destructor.
ACE_HANDLE handle (void)
 Return backing store handle.
off_t offset (void *p)
- Public Member Functions inherited from ACE_Allocator_Adapter< class >
 ACE_Allocator_Adapter (const char *pool_name=0)
 ACE_Allocator_Adapter (const char *pool_name, const char *lock_name, MEMORY_POOL_OPTIONS options=0)
 ACE_Allocator_Adapter (const wchar_t *pool_name)
 ACE_Allocator_Adapter (const wchar_t *pool_name, const wchar_t *lock_name, MEMORY_POOL_OPTIONS options=0)
virtual ~ACE_Allocator_Adapter (void)
virtual void * malloc (size_t nbytes)
virtual void * calloc (size_t nbytes, char initial_value= '\0')
virtual void * calloc (size_t n_elem, size_t elem_size, char initial_value= '\0')
virtual void free (void *ptr)
virtual int remove (void)
virtual int bind (const char *name, void *pointer, int duplicates=0)
virtual int trybind (const char *name, void *&pointer)
virtual int find (const char *name, void *&pointer)
virtual int find (const char *name)
virtual int unbind (const char *name)
virtual int unbind (const char *name, void *&pointer)
virtual int sync (ssize_t len=-1, int flags=MS_SYNC)
virtual int sync (void *addr, size_t len, int flags=MS_SYNC)
virtual int protect (ssize_t len=-1, int prot=PROT_RDWR)
virtual int protect (void *addr, size_t len, int prot=PROT_RDWR)
ALLOCATORalloc (void)
virtual void dump (void) const
 ACE_Allocator (void)
virtual ~ACE_Allocator (void)

Private Member Functions

 TAO_MMAP_Allocator (TAO_MMAP_Allocator const &)
void operator= (TAO_MMAP_Allocator const &)

Additional Inherited Members

- Public Types inherited from ACE_Allocator_Adapter< class >
typedef MALLOC ALLOCATOR
typedef const
MALLOC::MEMORY_POOL_OPTIONS * 
MEMORY_POOL_OPTIONS
typedef size_t size_type
- Public Types inherited from ACE_Allocator
- Static Public Member Functions inherited from ACE_Allocator_Adapter< class >
static ACE_Allocatorinstance (void)
static ACE_Allocatorinstance (ACE_Allocator *)
static void close_singleton (void)

Detailed Description

mmap-based allocator.

This class utilizes and


Constructor & Destructor Documentation

TAO_MMAP_Allocator::TAO_MMAP_Allocator ( void  )

Constructor.

TAO_MMAP_Allocator::~TAO_MMAP_Allocator ( void  )
virtual

Destructor.

TAO_MMAP_Allocator::TAO_MMAP_Allocator ( TAO_MMAP_Allocator const &  )
private

Member Function Documentation

ACE_HANDLE TAO_MMAP_Allocator::handle ( void  )

Return backing store handle.

off_t TAO_MMAP_Allocator::offset ( void *  p)

Return offset in backing store file for memory address p. If p is not coming from this allocator -1 is returned.

void TAO_MMAP_Allocator::operator= ( TAO_MMAP_Allocator const &  )
private

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