#include <ZeroCopyAllocator_T.h>
Inheritance diagram for OpenDDS::DCPS::FirstTimeFastAllocator< T, N >:


Public Member Functions | |
| FirstTimeFastAllocator () | |
| virtual void * | malloc (size_t nbytes) |
| virtual void | free (void *ptr) |
| virtual void * | calloc (size_t nbytes, char initial_value= '\0') |
| These methods are no-ops. | |
| virtual void * | calloc (size_t n_elem, size_t elem_size, char initial_value= '\0') |
| 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) |
| virtual void | dump (void) const |
| T * | pool () |
Private Attributes | |
| bool | firstTime_ |
| is this the first time this is allocated? | |
| T | pool_ [N] |
| the pool of allocated memory. | |
| ACE_INLINE OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::FirstTimeFastAllocator | ( | ) |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::bind | ( | const char * | name, | |
| void * | pointer, | |||
| int | duplicates = 0 | |||
| ) | [virtual] |
| void * OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::calloc | ( | size_t | n_elem, | |
| size_t | elem_size, | |||
| char | initial_value = '\0' | |||
| ) | [virtual] |
| void * OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::calloc | ( | size_t | nbytes, | |
| char | initial_value = '\0' | |||
| ) | [virtual] |
These methods are no-ops.
| void OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::dump | ( | void | ) | const [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::find | ( | const char * | name | ) | [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::find | ( | const char * | name, | |
| void *& | pointer | |||
| ) | [virtual] |
| ACE_INLINE void OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::free | ( | void * | ptr | ) | [virtual] |
| ACE_INLINE void * OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::malloc | ( | size_t | nbytes | ) | [virtual] |
| T* OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::pool | ( | ) | [inline] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::protect | ( | void * | addr, | |
| size_t | len, | |||
| int | prot = PROT_RDWR | |||
| ) | [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::protect | ( | ssize_t | len = -1, |
|
| int | prot = PROT_RDWR | |||
| ) | [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::remove | ( | void | ) | [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::sync | ( | void * | addr, | |
| size_t | len, | |||
| int | flags = MS_SYNC | |||
| ) | [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::sync | ( | ssize_t | len = -1, |
|
| int | flags = MS_SYNC | |||
| ) | [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::trybind | ( | const char * | name, | |
| void *& | pointer | |||
| ) | [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::unbind | ( | const char * | name, | |
| void *& | pointer | |||
| ) | [virtual] |
| int OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::unbind | ( | const char * | name | ) | [virtual] |
bool OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::firstTime_ [private] |
is this the first time this is allocated?
T OpenDDS::DCPS::FirstTimeFastAllocator< T, N >::pool_[N] [private] |
the pool of allocated memory.
1.4.7