Message_Block_Ptr.h

Go to the documentation of this file.
00001 #ifndef MESSAGE_BLOCK_PTR_H_18C6F30C
00002 #define MESSAGE_BLOCK_PTR_H_18C6F30C
00003 
00004 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00005 # pragma once
00006 #endif /* ACE_LACKS_PRAGMA_ONCE */
00007 
00008 #include "unique_ptr.h"
00009 #include "ace/Message_Block.h"
00010 
00011 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00012 
00013 namespace OpenDDS {
00014 namespace DCPS {
00015 
00016 struct Message_Block_Deleter
00017 {
00018   void operator()(ACE_Message_Block* ptr) const {
00019     ACE_Message_Block::release(ptr);
00020   }
00021 };
00022 
00023 typedef unique_ptr<ACE_Message_Block,Message_Block_Deleter> Message_Block_Ptr;
00024 
00025 } // namespace DCPS
00026 } // namespace OpenDDS
00027 
00028 OPENDDS_END_VERSIONED_NAMESPACE_DECL
00029 
00030 #endif // MESSAGE_BLOCK_PTR_H_18C6F30C
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1