![]() |
Project
|
#include <MemoryResources.h>
Inherits FairMQMemoryResource.
Public Member Functions | |
MessageResource () noexcept=delete | |
MessageResource (const MessageResource &) noexcept=default | |
MessageResource (MessageResource &&) noexcept=default | |
MessageResource & | operator= (const MessageResource &)=default |
MessageResource & | operator= (MessageResource &&)=default |
MessageResource (fair::mq::MessagePtr message) | |
fair::mq::MessagePtr | getMessage (void *p) override |
void * | setMessage (fair::mq::MessagePtr message) override |
fair::mq::TransportFactory * | getTransportFactory () noexcept override |
size_t | getNumberOfMessages () const noexcept override |
Protected Member Functions | |
void * | do_allocate (std::size_t bytes, std::size_t alignment) override |
void | do_deallocate (void *p, std::size_t bytes, std::size_t alignment) override |
bool | do_is_equal (const memory_resource &) const noexcept override |
Protected Attributes | |
FairMQMemoryResource * | mUpstream {nullptr} |
size_t | mMessageSize {0} |
void * | mMessageData {nullptr} |
bool | initialImport {true} |
This memory resource only watches, does not allocate/deallocate anything. Ownership of hte message is taken. Meant to be used for transparent data adoption in containers. In combination with the SpectatorAllocator this is an alternative to using span, as raw memory (e.g. an existing buffer message) will be accessible with appropriate container.
Definition at line 63 of file MemoryResources.h.
|
deletenoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inline |
Definition at line 72 of file MemoryResources.h.
|
inlineoverrideprotected |
Definition at line 90 of file MemoryResources.h.
|
inlineoverrideprotected |
Definition at line 102 of file MemoryResources.h.
|
inlineoverrideprotectednoexcept |
Definition at line 107 of file MemoryResources.h.
|
inlineoverride |
Definition at line 79 of file MemoryResources.h.
|
inlineoverridenoexcept |
Definition at line 82 of file MemoryResources.h.
|
inlineoverridenoexcept |
Definition at line 81 of file MemoryResources.h.
|
default |
|
default |
|
inlineoverride |
Definition at line 80 of file MemoryResources.h.
|
protected |
Definition at line 88 of file MemoryResources.h.
|
protected |
Definition at line 87 of file MemoryResources.h.
|
protected |
Definition at line 86 of file MemoryResources.h.
|
protected |
Definition at line 85 of file MemoryResources.h.