#include <command.h>

Public Member Functions | |
| 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 |
| bool | isValid () const |
| uint64_t | getAllocationSize () const |
Usage tracking. | |
| bool | isFree () const |
| void | retain () |
| void | release () |
Friends | |
| class | CommandCache |
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 41 of file command.h.
0.9 by
1.5.8