#include <command.h>

A RefPtr<Packet> can't be used, since Packets are plain C structs send over the network. The Command manages the ownership of packet by claiming them so that only one can hold a given packet at a time. A packet passed to a holder is owned by it and will be deleted automatically when necessary.
Definition at line 28 of file command.h.
Public Member Functions | |
| Command (const Command &from) | |
| void | swap (Command &rhs) |
| Packet * | getPacket () |
| const Packet * | getPacket () const |
| template<class P> | |
| P * | getPacket () |
| template<class P> | |
| const P * | getPacket () const |
| NodePtr | getNode () const |
| NodePtr | getLocalNode () const |
| bool | operator! () const |
| Packet * | operator-> () |
| const Packet * | operator-> () const |
| void | allocate (NodePtr node, NodePtr localNode, const uint64_t packetSize) |
| void | release () |
| bool | isValid () const |
| bool | isDispatched () const |
Friends | |
| class | CommandQueue |
0.6 by
1.5.5