A single message, potentially being transmitted on multiple connections. More...
#include <yarp/os/impl/PortCorePacket.h>
Public Member Functions | |
PortCorePacket () | |
Constructor. More... | |
virtual | ~PortCorePacket () |
Destructor. More... | |
int | getCount () |
void | inc () |
Increment the usage count for this messagae. More... | |
void | dec () |
Decrement the usage count for this messagae. More... | |
const yarp::os::PortWriter * | getContent () |
const yarp::os::PortWriter * | getCallback () |
void | setContent (const yarp::os::PortWriter *writable, bool owned=false, const yarp::os::PortWriter *callback=nullptr, bool ownedCallback=false) |
Configure the object being sent and where to send notifications. More... | |
void | reset () |
Delete anything we own and enter a clean state, as if freshly created. More... | |
void | complete () |
Send a completion notification if we haven't already, and there's somewhere to send it to. More... | |
Public Attributes | |
PortCorePacket * | prev_ |
this packet will be in a list of active packets More... | |
PortCorePacket * | next_ |
this packet will be in a list of active packets More... | |
const yarp::os::PortWriter * | content |
the object being sent More... | |
const yarp::os::PortWriter * | callback |
where to send event notifications More... | |
int | ct |
number of uses of the messagae More... | |
bool | owned |
should we memory-manage the content object More... | |
bool | ownedCallback |
should we memory-manage the callback object More... | |
bool | completed |
has a notification of completion been sent More... | |
A single message, potentially being transmitted on multiple connections.
This tracks uses of the message for memory management purposes.
Definition at line 24 of file PortCorePacket.h.
|
inline |
Constructor.
Definition at line 39 of file PortCorePacket.h.
|
inlinevirtual |
Destructor.
Destroy any owned objects unconditionally.
Definition at line 55 of file PortCorePacket.h.
|
inline |
Send a completion notification if we haven't already, and there's somewhere to send it to.
Definition at line 145 of file PortCorePacket.h.
|
inline |
Decrement the usage count for this messagae.
Definition at line 80 of file PortCorePacket.h.
|
inline |
Definition at line 96 of file PortCorePacket.h.
|
inline |
Definition at line 88 of file PortCorePacket.h.
|
inline |
Definition at line 64 of file PortCorePacket.h.
|
inline |
Increment the usage count for this messagae.
Definition at line 72 of file PortCorePacket.h.
|
inline |
Delete anything we own and enter a clean state, as if freshly created.
Definition at line 125 of file PortCorePacket.h.
|
inline |
Configure the object being sent and where to send notifications.
writable | the object being sent |
owned | should we memory-manage writable |
callback | where to send notifications |
ownedCallback | should we memory-manage callback |
Definition at line 109 of file PortCorePacket.h.
const yarp::os::PortWriter* yarp::os::impl::PortCorePacket::callback |
where to send event notifications
Definition at line 30 of file PortCorePacket.h.
bool yarp::os::impl::PortCorePacket::completed |
has a notification of completion been sent
Definition at line 34 of file PortCorePacket.h.
const yarp::os::PortWriter* yarp::os::impl::PortCorePacket::content |
the object being sent
Definition at line 29 of file PortCorePacket.h.
int yarp::os::impl::PortCorePacket::ct |
number of uses of the messagae
Definition at line 31 of file PortCorePacket.h.
PortCorePacket* yarp::os::impl::PortCorePacket::next_ |
this packet will be in a list of active packets
Definition at line 28 of file PortCorePacket.h.
bool yarp::os::impl::PortCorePacket::owned |
should we memory-manage the content object
Definition at line 32 of file PortCorePacket.h.
bool yarp::os::impl::PortCorePacket::ownedCallback |
should we memory-manage the callback object
Definition at line 33 of file PortCorePacket.h.
PortCorePacket* yarp::os::impl::PortCorePacket::prev_ |
this packet will be in a list of active packets
Definition at line 27 of file PortCorePacket.h.