#include <DataReaderImpl_T.h>
Public Member Functions | |
void * | operator new (size_t size, ACE_New_Allocator &pool) |
void | operator delete (void *memory, ACE_New_Allocator &pool) |
void | operator delete (void *memory) |
MessageTypeWithAllocator () | |
MessageTypeWithAllocator (const MessageType &other) |
Definition at line 51 of file DataReaderImpl_T.h.
OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator::MessageTypeWithAllocator | ( | ) | [inline] |
Definition at line 60 of file DataReaderImpl_T.h.
OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator::MessageTypeWithAllocator | ( | const MessageType & | other | ) | [inline] |
Definition at line 61 of file DataReaderImpl_T.h.
void OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator::operator delete | ( | void * | memory | ) | [inline] |
Definition at line 2399 of file DataReaderImpl_T.h.
References OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeMemoryBlock::allocator_, and ACE_New_Allocator::free().
02400 { 02401 if (memory) { 02402 MessageTypeMemoryBlock* block = static_cast<MessageTypeMemoryBlock*>(memory); 02403 block->allocator_->free(block); 02404 } 02405 }
void OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator::operator delete | ( | void * | memory, | |
ACE_New_Allocator & | pool | |||
) | [inline] |
Definition at line 2408 of file DataReaderImpl_T.h.
02409 { 02410 operator delete(memory); 02411 }
void * OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator::operator new | ( | size_t | size, | |
ACE_New_Allocator & | pool | |||
) | [inline] |
Definition at line 2389 of file DataReaderImpl_T.h.
References OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeMemoryBlock::allocator_, and ACE_New_Allocator::malloc().
02390 { 02391 typedef typename DataReaderImpl_T<MessageType>::MessageTypeMemoryBlock MessageTypeMemoryBlock; 02392 MessageTypeMemoryBlock* block = 02393 static_cast<MessageTypeMemoryBlock*>(pool.malloc(sizeof(MessageTypeMemoryBlock))); 02394 block->allocator_ = &pool; 02395 return block; 02396 }