The OidxRange class provides functionality to define and compare OID ranges.
More...
#include <snmp_pp_ext.h>
The OidxRange class provides functionality to define and compare OID ranges.
- Version
- 3.03
- Author
- Frank Fock
OidxRange::OidxRange |
( |
const Oidx & |
, |
|
|
const Oidx & |
|
|
) |
| |
Create an OID range with lower and upper bound.
- Parameters
-
lower | the lower bound of the oid range (must be lexicographically less than upper) |
upper | the upper bound of the oid range |
virtual OidxRange::~OidxRange |
( |
| ) |
|
|
virtual |
virtual OidxRange* OidxRange::clone |
( |
| ) |
const |
|
virtual |
Clone.
- Returns
- a pointer to a clone of the receiver.
virtual bool OidxRange::covers |
( |
const OidxRange & |
| ) |
const |
|
virtual |
Check whether a range is covered by the receiver's range.
- Parameters
-
- Returns
- TRUE if the lower bound of range is greater or equal the receiver's lower bound and if the upper bound of range is less or equal the upper bound of the receiver, FALSE otherwise
virtual Oidx OidxRange::get_lower |
( |
| ) |
const |
|
virtual |
Get lower bound.
- Returns
- the lower bound object identifier
virtual Oidx OidxRange::get_upper |
( |
| ) |
const |
|
virtual |
Get upper bound.
- Returns
- the upper bound object identifier
virtual bool OidxRange::includes |
( |
const Oidx & |
| ) |
const |
|
virtual |
Check whether an OID is within the receiver's range.
- Parameters
-
- Returns
- TRUE if oid is greater or equal to the receiver's lower bound and less or equal to its upper bound.
virtual bool OidxRange::includes_excl |
( |
const Oidx & |
| ) |
const |
|
virtual |
Check whether an OID is within the receiver's range.
- Parameters
-
- Returns
- TRUE if oid is greater or equal the receiver's lower bound and less than its upper bound.
virtual bool OidxRange::operator< |
( |
const OidxRange & |
| ) |
const |
|
virtual |
Compare the receiver with another OID range.
- Parameters
-
- Returns
- TRUE if the upper bound of the receiver is less or equal to the lower bound of other
virtual bool OidxRange::operator== |
( |
const OidxRange & |
| ) |
const |
|
virtual |
Compare the receiver with another OID range for equality.
- Parameters
-
- Returns
- TRUE if lower and upper bounds of both OID ranges are equal
virtual bool OidxRange::operator> |
( |
const OidxRange & |
| ) |
const |
|
virtual |
Compare the receiver with another OID range.
- Parameters
-
- Returns
- TRUE if the lower bound of the receiver is greater or equal to the upper bound of other
virtual bool OidxRange::overlaps |
( |
const OidxRange & |
| ) |
const |
|
virtual |
Check whether a range overlaps the receiver's range.
- Parameters
-
- Returns
- TRUE if at least one oid is part of both ranges, FALSE otherwise
The documentation for this class was generated from the following file: