OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator Class Reference

#include <DataReaderImpl_T.h>

Inheritance diagram for OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

template<typename MessageType>
class OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator

Definition at line 51 of file DataReaderImpl_T.h.


Constructor & Destructor Documentation

template<typename MessageType>
OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator::MessageTypeWithAllocator (  )  [inline]

Definition at line 60 of file DataReaderImpl_T.h.

00060 {}

template<typename MessageType>
OpenDDS::DCPS::DataReaderImpl_T< MessageType >::MessageTypeWithAllocator::MessageTypeWithAllocator ( const MessageType &  other  )  [inline]

Definition at line 61 of file DataReaderImpl_T.h.

00062         : MessageType(other)
00063       {
00064       }


Member Function Documentation

template<typename MessageType >
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 }

Here is the call graph for this function:

template<typename MessageType >
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 }

template<typename MessageType >
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 }

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1