Derecho  0.9
Distributed systems toolkit for RDMA
Public Member Functions | Public Attributes | List of all members
derecho::MessageBuffer Struct Reference

Represents a block of memory used to store a message. More...

#include <multicast_group.hpp>

Collaboration diagram for derecho::MessageBuffer:
Collaboration graph
[legend]

Public Member Functions

 MessageBuffer ()
 
 MessageBuffer (size_t size)
 
 MessageBuffer (const MessageBuffer &)=delete
 
 MessageBuffer (MessageBuffer &&)=default
 
MessageBufferoperator= (const MessageBuffer &)=delete
 
MessageBufferoperator= (MessageBuffer &&)=default
 

Public Attributes

std::unique_ptr< char[]> buffer
 
std::shared_ptr< rdma::memory_regionmr
 

Detailed Description

Represents a block of memory used to store a message.

This object contains both the array of bytes in which the message is stored and the corresponding RDMA memory region (which has registered that array of bytes as its buffer). This is a move-only type, since memory regions can't be copied.

Definition at line 172 of file multicast_group.hpp.

Constructor & Destructor Documentation

◆ MessageBuffer() [1/4]

derecho::MessageBuffer::MessageBuffer ( )
inline

Definition at line 176 of file multicast_group.hpp.

◆ MessageBuffer() [2/4]

derecho::MessageBuffer::MessageBuffer ( size_t  size)
inline

Definition at line 177 of file multicast_group.hpp.

◆ MessageBuffer() [3/4]

derecho::MessageBuffer::MessageBuffer ( const MessageBuffer )
delete

◆ MessageBuffer() [4/4]

derecho::MessageBuffer::MessageBuffer ( MessageBuffer &&  )
default

Member Function Documentation

◆ operator=() [1/2]

MessageBuffer& derecho::MessageBuffer::operator= ( const MessageBuffer )
delete

◆ operator=() [2/2]

MessageBuffer& derecho::MessageBuffer::operator= ( MessageBuffer &&  )
default

Member Data Documentation

◆ buffer

std::unique_ptr<char[]> derecho::MessageBuffer::buffer

Definition at line 173 of file multicast_group.hpp.

◆ mr

std::shared_ptr<rdma::memory_region> derecho::MessageBuffer::mr

Definition at line 174 of file multicast_group.hpp.


The documentation for this struct was generated from the following file: