hmbdc
simplify-high-performance-messaging-programming
|
internal use More...
#include <Messages.hpp>
Classes | |
struct | hmbdcSerialized |
internal use More... | |
Public Member Functions | |
hasSharedPtrAttachment () | |
the length of the POD data More... | |
hasSharedPtrAttachment (SP attachmentIn, size_t len=sizeof(T)) | |
Construct a new has Shared Ptr Attachment object. More... | |
auto | toHmbdcSerialized () const |
internal use | |
Public Attributes | |
size_t | len = 0 |
the attachment | |
internal use
Message that need to be IPCed and/or go through Network can derived from this type if it holds 1 (and only 1) shared ptr to an already serilized POD type
use this instead of app::hasMemoryAttachment directly to avoid the complication of releasing the attachment
Mesasge | the concrete Message type thatderived from this tmeplate |
T | the underlying POD data type |
|
inline |
the length of the POD data
empty ctor
|
inline |
Construct a new has Shared Ptr Attachment object.
attachmentIn | input shared_ptr |
len | byte size of the attachment |