#include <alias.h>
Public Member Functions | |
string | getName (void) const |
bool | associate (nodeId id, string &name) |
bool | associate (nodeId id, const char *name) |
bool | associate (std::map< nodeId, string > &map) |
bool | dissociate (nodeId id) |
Protected Member Functions | |
_Alias (const char *aliasname) throw (Exception) | |
_Alias (const string &) throw (Exception) | |
virtual | ~_Alias () |
bool | _associate (const string &association) |
void | unregisterNode (nodeId id) |
Protected Attributes | |
AliasBase * | ab |
string | name |
bool | associated |
string | current_association |
std::set< nodeId > | owners |
std::map< nodeId, string > | associations |
Friends | |
class | AliasBase |
class | AliasPacket |
Definition at line 111 of file alias.h.
libglass::_Alias::_Alias | ( | const char * | aliasname | ) | throw (Exception) [protected] |
virtual libglass::_Alias::~_Alias | ( | ) | [protected, virtual] |
Destructor.
bool libglass::_Alias::_associate | ( | const string & | association | ) | [protected] |
Associates a given node to an alias locally.
name |
True | ||
False |
bool libglass::_Alias::associate | ( | nodeId | id, | |
const char * | name | |||
) |
Associates a given node to an alias, propagating to other nodes.
id | The node id. | |
name | Alias association |
True | if message sent successfully. Doesn't guarantee either that node "id" exists or that it has an associated alias "name". | |
False | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
id | The node id. | |
name | Alias association |
map | A map of nodes and aliases. |
bool libglass::_Alias::dissociate | ( | nodeId | id | ) |
string libglass::_Alias::getName | ( | void | ) | const |
Returns this instance's name.
void libglass::_Alias::unregisterNode | ( | nodeId | id | ) | [protected] |
AliasBase* libglass::_Alias::ab [protected] |
bool libglass::_Alias::associated [protected] |
are we associated?
Definition at line 123 of file alias.h.
Referenced by libglass::Alias< T >::checkAlias(), and libglass::Alias< T >::getData().
std::map<nodeId, string> libglass::_Alias::associations [protected] |
string libglass::_Alias::current_association [protected] |
our current associations
Definition at line 124 of file alias.h.
Referenced by libglass::Alias< T >::getData().
string libglass::_Alias::name [protected] |
std::set<nodeId> libglass::_Alias::owners [protected] |