#include <PubSubSubspaceId.h>
Public Member Functions | |
| PubSubSubspaceId (int id, int _maxY) | |
| Creates a new PubSubSubspace. | |
| PubSubSubspaceId (int x, int y, int _maxY) | |
| ~PubSubSubspaceId () | |
| int | getId () const |
| int | getX () const |
| int | getY () const |
| bool | operator< (const PubSubSubspaceId x) const |
| bool | operator== (const PubSubSubspaceId x) const |
Protected Attributes | |
| int | spaceId |
| int | maxY |
Friends | |
| std::ostream & | operator<< (std::ostream &, const PubSubSubspaceId &) |
Definition at line 30 of file PubSubSubspaceId.h.
| PubSubSubspaceId::PubSubSubspaceId | ( | int | id, | |
| int | _maxY | |||
| ) | [inline] |
Creates a new PubSubSubspace.
| id | The group ID of the new group | |
| _maxY | The number of subspaces per row |
Definition at line 43 of file PubSubSubspaceId.h.
| PubSubSubspaceId::PubSubSubspaceId | ( | int | x, | |
| int | y, | |||
| int | _maxY | |||
| ) | [inline] |
| PubSubSubspaceId::~PubSubSubspaceId | ( | ) | [inline] |
| int PubSubSubspaceId::getId | ( | ) | const [inline] |
Definition at line 47 of file PubSubSubspaceId.h.
Referenced by PubSubLobby::failedNode(), PubSubLobby::handleJoin(), PubSubMMOG::handleJoinResponse(), PubSubMMOG::handleMove(), PubSubMMOG::handlePingCallTimeout(), PubSubLobby::handleRespCall(), PubSubMMOG::publishEvents(), PubSubLobby::replaceResponsibleNode(), PubSubMMOG::takeOverSubspace(), and PubSubMMOG::unsubscribeChild().
00047 { return spaceId; }
| int PubSubSubspaceId::getX | ( | ) | const [inline] |
Definition at line 48 of file PubSubSubspaceId.h.
Referenced by PubSubLobby::failedNode(), and PubSubLobby::replaceResponsibleNode().
| int PubSubSubspaceId::getY | ( | ) | const [inline] |
Definition at line 49 of file PubSubSubspaceId.h.
Referenced by PubSubLobby::failedNode(), and PubSubLobby::replaceResponsibleNode().
| bool PubSubSubspaceId::operator< | ( | const PubSubSubspaceId | x | ) | const [inline] |
| bool PubSubSubspaceId::operator== | ( | const PubSubSubspaceId | x | ) | const [inline] |
| std::ostream& operator<< | ( | std::ostream & | o, | |
| const PubSubSubspaceId & | subspaceId | |||
| ) | [friend] |
Definition at line 27 of file PubSubSubspaceId.cc.
00028 { 00029 o << subspaceId.spaceId; 00030 return o; 00031 }
int PubSubSubspaceId::maxY [protected] |
int PubSubSubspaceId::spaceId [protected] |
Definition at line 33 of file PubSubSubspaceId.h.
Referenced by getId(), getX(), getY(), operator<(), operator<<(), and operator==().
1.5.8