#include <agentx_pdu.h>
Public Member Functions | |
AgentXSearchRange () | |
Default constructor. | |
AgentXSearchRange (const Oidx &, const Oidx &, boolean=FALSE) | |
Create a SearchRange with a given lower and a upper bound, optionally define the lower bound as inclusive or exclusive. | |
AgentXSearchRange (const AgentXSearchRange &) | |
Copy constructor. | |
AgentXSearchRange (const OidxRange &) | |
Copy constructor from OidxRange. | |
virtual | ~AgentXSearchRange () |
Destructor. | |
virtual AgentXSearchRange * | clone () const |
Clone. | |
virtual AgentXSearchRange & | operator= (const AgentXSearchRange &) |
virtual int | operator== (const AgentXSearchRange &) const |
Compare the receiver with another OID range for equality. | |
virtual int | operator< (const AgentXSearchRange &) const |
Compare the receiver with another OID range. | |
virtual int | operator> (const AgentXSearchRange &) const |
Compare the receiver with another OID range. | |
void | set_include (boolean inc) |
Set whether the lower bound is included or not. | |
virtual int | includes (const Oidx &) const |
Check whether an OID is within the receiver's range. | |
virtual int | includes_excl (const Oidx &) const |
Check whether an OID is within the receiver's range. | |
virtual boolean | is_lower_included () const |
Check whether the lower bound is is itself included or excluded from the search range. | |
void | no_upper_bound () |
Unset upper bound. | |
boolean | is_unbounded () |
Return TRUE if search range has no upper bound. | |
void | set_reference (int ref) |
Set the reference to a SNMP subrequest index. | |
int | get_reference () const |
Get the reference for the receiver. | |
Oidx | get_lower () const |
Get the lower bound. | |
Oidx | get_upper () const |
Get the upper bound. | |
Protected Attributes | |
OidxRange | range |
boolean | include |
int | reference |
AgentXSearchRange::AgentXSearchRange | ( | ) |
Default constructor.
AgentXSearchRange::AgentXSearchRange | ( | const Oidx & | , | |
const Oidx & | , | |||
boolean | = FALSE | |||
) |
Create a SearchRange with a given lower and a upper bound, optionally define the lower bound as inclusive or exclusive.
lower | the lower bound of the search range | |
upper | the upper bound of the search range | |
includeLower | if TRUE the lower bound is included in the search range, otherwise it is excluded. |
AgentXSearchRange::AgentXSearchRange | ( | const AgentXSearchRange & | ) |
Copy constructor.
other | another SearchRange |
AgentXSearchRange::AgentXSearchRange | ( | const OidxRange & | ) |
Copy constructor from OidxRange.
other | an OidxRange instance |
virtual AgentXSearchRange::~AgentXSearchRange | ( | ) | [virtual] |
Destructor.
virtual AgentXSearchRange* AgentXSearchRange::clone | ( | ) | const [virtual] |
Clone.
virtual AgentXSearchRange& AgentXSearchRange::operator= | ( | const AgentXSearchRange & | ) | [virtual] |
virtual int AgentXSearchRange::operator== | ( | const AgentXSearchRange & | ) | const [virtual] |
Compare the receiver with another OID range for equality.
other | another OidxRange instance |
virtual int AgentXSearchRange::operator< | ( | const AgentXSearchRange & | ) | const [virtual] |
Compare the receiver with another OID range.
other | another OidxRange instance |
virtual int AgentXSearchRange::operator> | ( | const AgentXSearchRange & | ) | const [virtual] |
Compare the receiver with another OID range.
other | another OidxRange instance |
void AgentXSearchRange::set_include | ( | boolean | inc | ) | [inline] |
Set whether the lower bound is included or not.
include | if TRUE, the lower bound is included in the search range, if FALSE, the lower bound is excluded. |
virtual int AgentXSearchRange::includes | ( | const Oidx & | ) | const [virtual] |
Check whether an OID is within the receiver's range.
oid | an object identifier |
virtual int AgentXSearchRange::includes_excl | ( | const Oidx & | ) | const [virtual] |
Check whether an OID is within the receiver's range.
oid | an object identifier |
virtual boolean AgentXSearchRange::is_lower_included | ( | ) | const [inline, virtual] |
Check whether the lower bound is is itself included or excluded from the search range.
void AgentXSearchRange::no_upper_bound | ( | ) | [inline] |
Unset upper bound.
boolean AgentXSearchRange::is_unbounded | ( | ) | [inline] |
Return TRUE if search range has no upper bound.
void AgentXSearchRange::set_reference | ( | int | ref | ) | [inline] |
Set the reference to a SNMP subrequest index.
index | an index into a SNMP request PDU. |
int AgentXSearchRange::get_reference | ( | ) | const [inline] |
Get the reference for the receiver.
Oidx AgentXSearchRange::get_lower | ( | ) | const [inline] |
Get the lower bound.
Oidx AgentXSearchRange::get_upper | ( | ) | const [inline] |
Get the upper bound.
OidxRange AgentXSearchRange::range [protected] |
boolean AgentXSearchRange::include [protected] |
int AgentXSearchRange::reference [protected] |