#include <agentx_pdu.h>
Public Member Functions | |
AgentXRegion () | |
AgentXRegion (const Oidx &) | |
Construct a subtree region. | |
AgentXRegion (const Oidx &, const Oidx &) | |
Construct a region with lower and upper bound. | |
AgentXRegion (const Oidx &, unsigned char, unsigned int) | |
Construct a subtree region with a range. | |
AgentXRegion (const AgentXRegion &) | |
Copy constructor. | |
virtual | ~AgentXRegion () |
virtual int | set (const Oidx &, const u_char, const u_int) |
virtual boolean | is_range () const |
virtual void | set_upper_bound (u_int u) |
virtual u_int | get_upper_bound () |
virtual u_char | get_subid () const |
virtual void | set_subid (u_char sid) |
virtual AgentXRegion & | operator= (const AgentXRegion &) |
virtual boolean | operator< (const AgentXRegion &) const |
virtual boolean | operator> (const AgentXRegion &) const |
virtual boolean | operator== (const AgentXRegion &) const |
virtual boolean | covers (const AgentXRegion &) const |
virtual boolean | overlaps (const AgentXRegion &) const |
virtual boolean | includes (const Oidx &) const |
virtual boolean | includes_excl (const Oidx &) const |
virtual boolean | is_empty () const |
void | set_single (boolean s) |
boolean | is_single () const |
Oidx | get_lower () const |
Get the lower bound. | |
Oidx & | lower () |
Oidx | get_upper () const |
Get the upper bound. | |
Oidx & | upper () |
void | set_upper (const Oidx &o) |
Set the upper bound. | |
void | set_lower (const Oidx &o) |
Set the upper bound. | |
Protected Attributes | |
OidxRange | range |
u_char | subid |
boolean | single |
AgentXRegion::AgentXRegion | ( | ) | [inline] |
AgentXRegion::AgentXRegion | ( | const Oidx & | ) |
Construct a subtree region.
subtree | an oid denoting a registration subtree. |
AgentXRegion::AgentXRegion | ( | const Oidx & | , | |
const Oidx & | ||||
) |
Construct a region with lower and upper bound.
lower | the lower bound of the region. | |
upper | the upper bound of the region. |
AgentXRegion::AgentXRegion | ( | const Oidx & | , | |
unsigned | char, | |||
unsigned | int | |||
) |
Construct a subtree region with a range.
subtree | an oid denoting a registration subtree. | |
range_subid | specifies the subid of subtree (starting from one) that may vary in a given range. | |
upper | the upper bound for the subid specified by range_subid. |
AgentXRegion::AgentXRegion | ( | const AgentXRegion & | ) |
Copy constructor.
virtual AgentXRegion::~AgentXRegion | ( | ) | [inline, virtual] |
virtual int AgentXRegion::set | ( | const Oidx & | , | |
const | u_char, | |||
const | u_int | |||
) | [virtual] |
virtual boolean AgentXRegion::is_range | ( | ) | const [inline, virtual] |
virtual void AgentXRegion::set_upper_bound | ( | u_int | u | ) | [virtual] |
virtual u_int AgentXRegion::get_upper_bound | ( | ) | [virtual] |
virtual u_char AgentXRegion::get_subid | ( | ) | const [inline, virtual] |
virtual void AgentXRegion::set_subid | ( | u_char | sid | ) | [inline, virtual] |
virtual AgentXRegion& AgentXRegion::operator= | ( | const AgentXRegion & | ) | [virtual] |
virtual boolean AgentXRegion::operator< | ( | const AgentXRegion & | ) | const [virtual] |
virtual boolean AgentXRegion::operator> | ( | const AgentXRegion & | ) | const [virtual] |
virtual boolean AgentXRegion::operator== | ( | const AgentXRegion & | ) | const [virtual] |
virtual boolean AgentXRegion::covers | ( | const AgentXRegion & | ) | const [virtual] |
virtual boolean AgentXRegion::overlaps | ( | const AgentXRegion & | ) | const [virtual] |
virtual boolean AgentXRegion::includes | ( | const Oidx & | ) | const [virtual] |
virtual boolean AgentXRegion::includes_excl | ( | const Oidx & | ) | const [virtual] |
virtual boolean AgentXRegion::is_empty | ( | ) | const [virtual] |
void AgentXRegion::set_single | ( | boolean | s | ) | [inline] |
boolean AgentXRegion::is_single | ( | ) | const [inline] |
Oidx AgentXRegion::get_lower | ( | ) | const [inline] |
Get the lower bound.
Oidx& AgentXRegion::lower | ( | ) | [inline] |
Oidx AgentXRegion::get_upper | ( | ) | const [inline] |
Get the upper bound.
Oidx& AgentXRegion::upper | ( | ) | [inline] |
void AgentXRegion::set_upper | ( | const Oidx & | o | ) | [inline] |
Set the upper bound.
upper | an Oidx instance. |
void AgentXRegion::set_lower | ( | const Oidx & | o | ) | [inline] |
Set the upper bound.
upper | an Oidx instance. |
OidxRange AgentXRegion::range [protected] |
u_char AgentXRegion::subid [protected] |
boolean AgentXRegion::single [protected] |