|
Jpp
|
Template specialisation of JRouter with default address comparison. More...
#include <JRouter.hh>
Classes | |
| class | JAddress |
| Simple data structure for validation of address. More... | |
Public Member Functions | |
| JRouter () | |
| Default constructor. More... | |
| JRouter (argument_type address) | |
| Constructor. More... | |
| bool | hasDefaultAddress () const |
| Check availability of default address. More... | |
| virtual const JAddress_t & | getDefaultAddress () const |
| Get default address. More... | |
| void | setDefaultAddress (argument_type address) |
| Set default address. More... | |
| bool | has (const int id) const |
| Test whether given identifier has valid address (i.e identifier is in range and corresponding address is not equal to default address). More... | |
| void | clear () |
| Clear. More... | |
| void | copy (const JRouter &router, const bool option=true) |
| Copy router. More... | |
| void | put (const int id, argument_type address) |
| Store address for given identifier. More... | |
| bool | in_range (const int id) const |
| Check whether given identifier is in range of this router. More... | |
| const JAddress_t & | get (const int id) const |
| Get address of given identifier. More... | |
Protected Attributes | |
| int | first |
Private Types | |
| typedef JLANG::JClass < JAddress_t >::argument_type | argument_type |
Private Attributes | |
| JAddress | defaultAddress |
Template specialisation of JRouter with default address comparison.
Definition at line 166 of file JRouter.hh.
|
private |
Definition at line 170 of file JRouter.hh.
|
inline |
Default constructor.
Definition at line 243 of file JRouter.hh.
|
inline |
Constructor.
| address | default address |
Definition at line 254 of file JRouter.hh.
|
inline |
Check availability of default address.
Definition at line 265 of file JRouter.hh.
|
inlinevirtual |
Get default address.
Reimplemented from JTOOLS::JRouter< JAddress_t, false >.
Definition at line 276 of file JRouter.hh.
|
inline |
Set default address.
| address | default address |
Definition at line 287 of file JRouter.hh.
|
inline |
Test whether given identifier has valid address (i.e identifier is in range and corresponding address is not equal to default address).
| id | identifier |
Definition at line 299 of file JRouter.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Store address for given identifier.
| id | identifier |
| address | address |
Definition at line 105 of file JRouter.hh.
|
inlineinherited |
Check whether given identifier is in range of this router.
| id | identifier |
Definition at line 140 of file JRouter.hh.
|
inlineinherited |
Get address of given identifier.
| id | identifier |
Definition at line 152 of file JRouter.hh.
|
private |
Definition at line 306 of file JRouter.hh.
|
protectedinherited |
Definition at line 158 of file JRouter.hh.
1.8.5