#include <KeyRange.h>
Definition at line 46 of file KeyRange.h.
Public Member Functions | |
bool | containsKey (const MaceKey &k) const |
returns true if the range includes the key k | |
Static Public Member Functions | |
static bool | containsKey (const MaceKey &id, const MaceKey &start, const MaceKey &end) |
determines if id is between start and end | |
Static Public Attributes | |
static const KeyRange | null = mace::KeyRange() |
convenience object for the null KeyRange |
static bool mace::KeyRange::containsKey | ( | const MaceKey & | id, | |
const MaceKey & | start, | |||
const MaceKey & | end | |||
) | [inline, static] |
determines if id is between start and end
If either address is null, the return is false. If the address families don't match, an exception is thrown.
id | the key to test | |
start | inclusive start to the key range | |
end | exclusive end to the key range |
Definition at line 64 of file KeyRange.h.
References mace::MaceKey::addressFamily(), and mace::MaceKey::isNullAddress().