AgentXRegion Class Reference

#include <agentx_pdu.h>

List of all members.

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 AgentXRegionoperator= (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


Constructor & Destructor Documentation

AgentXRegion::AgentXRegion (  )  [inline]

AgentXRegion::AgentXRegion ( const Oidx &   ) 

Construct a subtree region.

Parameters:
subtree an oid denoting a registration subtree.

AgentXRegion::AgentXRegion ( const Oidx &  ,
const Oidx &   
)

Construct a region with lower and upper bound.

Parameters:
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.

Parameters:
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]


Member Function Documentation

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.

Returns:
a Oidx specifying the lower bound of the search range.

Oidx& AgentXRegion::lower (  )  [inline]

Oidx AgentXRegion::get_upper (  )  const [inline]

Get the upper bound.

Returns:
a Oidx specifying the upper bound of the search range.

Oidx& AgentXRegion::upper (  )  [inline]

void AgentXRegion::set_upper ( const Oidx &  o  )  [inline]

Set the upper bound.

Parameters:
upper an Oidx instance.

void AgentXRegion::set_lower ( const Oidx &  o  )  [inline]

Set the upper bound.

Parameters:
upper an Oidx instance.


Member Data Documentation

OidxRange AgentXRegion::range [protected]

u_char AgentXRegion::subid [protected]

boolean AgentXRegion::single [protected]


The documentation for this class was generated from the following file:

Generated on Tue May 26 23:32:15 2009 for AgentX++ by  doxygen 1.5.6