cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class to hold shared objects. More...
#include <msgpack_rpc/util/impl/shared_objects.h>
Public Member Functions | |
SharedObject () noexcept=default | |
Constructor. | |
SharedObject (const SharedObject &other) noexcept | |
Copy constructor. | |
SharedObject (SharedObject &&other) noexcept | |
Move constructor. | |
SharedObject (SharedObjectBuffer< T > *buffer, std::shared_ptr< SharedObjectMemoryPool< T > > memory_pool) noexcept | |
Constructor. | |
~SharedObject () noexcept | |
Destructor. | |
SharedObject & | operator= (const SharedObject &other) noexcept |
Copy assignment operator. | |
SharedObject & | operator= (SharedObject &&other) noexcept |
Move assignment operator. | |
void | reset () noexcept |
Remove the buffer. |
Private Attributes | |
SharedObjectBuffer< T > * | buffer_ {nullptr} |
Buffer of the shared object. | |
std::shared_ptr< SharedObjectMemoryPool< T > > | memory_pool_ {} |
Memory pool. |
Class to hold shared objects.
T | Types of the shared objects. |
Definition at line 116 of file shared_objects.h.
|
inlineexplicitnoexcept |
Constructor.
[in] | buffer | Buffer of a shared object. |
[in] | memory_pool | Memory pool. |
Definition at line 129 of file shared_objects.h.
|
inlinenoexcept |
Copy constructor.
[in] | other | Object to move from. |
Definition at line 138 of file shared_objects.h.
|
inlinenoexcept |
Move constructor.
[in] | other | Object to move from. |
Definition at line 150 of file shared_objects.h.
|
inlinenoexcept |
Destructor.
Definition at line 191 of file shared_objects.h.
|
inlinenoexcept |
Copy assignment operator.
[in] | other | Object to copy from. |
Definition at line 161 of file shared_objects.h.
|
inlinenoexcept |
Move assignment operator.
[in] | other | Object to move from. |
Definition at line 180 of file shared_objects.h.
|
inlinenoexcept |
Remove the buffer.
Definition at line 196 of file shared_objects.h.
|
private |
Buffer of the shared object.
Definition at line 206 of file shared_objects.h.
|
private |
Memory pool.
Definition at line 209 of file shared_objects.h.