AgentX++  2.0.5
Public Member Functions | Protected Attributes | List of all members
AgentXRegion Class Reference

#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 bool 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 bool operator< (const AgentXRegion &) const
 
virtual bool operator> (const AgentXRegion &) const
 
virtual bool operator== (const AgentXRegion &) const
 
virtual bool covers (const AgentXRegion &) const
 
virtual bool overlaps (const AgentXRegion &) const
 
virtual bool includes (const Oidx &) const
 
virtual bool includes_excl (const Oidx &) const
 
virtual bool is_empty () const
 
void set_single (bool s)
 
bool 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
 
bool single
 

Constructor & Destructor Documentation

AgentXRegion::AgentXRegion ( )
inline
AgentXRegion::AgentXRegion ( const Oidx &  )

Construct a subtree region.

Parameters
subtreean oid denoting a registration subtree.
AgentXRegion::AgentXRegion ( const Oidx &  ,
const Oidx &   
)

Construct a region with lower and upper bound.

Parameters
lowerthe lower bound of the region.
upperthe upper bound of the region.
AgentXRegion::AgentXRegion ( const Oidx &  ,
unsigned  char,
unsigned  int 
)

Construct a subtree region with a range.

Parameters
subtreean oid denoting a registration subtree.
range_subidspecifies the subid of subtree (starting from one) that may vary in a given range.
upperthe upper bound for the subid specified by range_subid.
AgentXRegion::AgentXRegion ( const AgentXRegion )

Copy constructor.

virtual AgentXRegion::~AgentXRegion ( )
inlinevirtual

Member Function Documentation

virtual bool AgentXRegion::covers ( const AgentXRegion ) const
virtual
Oidx AgentXRegion::get_lower ( ) const
inline

Get the lower bound.

Returns
a Oidx specifying the lower bound of the search range.
virtual u_char AgentXRegion::get_subid ( ) const
inlinevirtual
Oidx AgentXRegion::get_upper ( ) const
inline

Get the upper bound.

Returns
a Oidx specifying the upper bound of the search range.
virtual u_int AgentXRegion::get_upper_bound ( )
virtual
virtual bool AgentXRegion::includes ( const Oidx &  ) const
virtual
virtual bool AgentXRegion::includes_excl ( const Oidx &  ) const
virtual
virtual bool AgentXRegion::is_empty ( ) const
virtual
virtual bool AgentXRegion::is_range ( ) const
inlinevirtual
bool AgentXRegion::is_single ( ) const
inline
Oidx& AgentXRegion::lower ( )
inline
virtual bool AgentXRegion::operator< ( const AgentXRegion ) const
virtual
virtual AgentXRegion& AgentXRegion::operator= ( const AgentXRegion )
virtual
virtual bool AgentXRegion::operator== ( const AgentXRegion ) const
virtual
virtual bool AgentXRegion::operator> ( const AgentXRegion ) const
virtual
virtual bool AgentXRegion::overlaps ( const AgentXRegion ) const
virtual
virtual int AgentXRegion::set ( const Oidx &  ,
const u_char  ,
const u_int   
)
virtual
void AgentXRegion::set_lower ( const Oidx &  o)
inline

Set the upper bound.

Parameters
upperan Oidx instance.
void AgentXRegion::set_single ( bool  s)
inline
virtual void AgentXRegion::set_subid ( u_char  sid)
inlinevirtual
void AgentXRegion::set_upper ( const Oidx &  o)
inline

Set the upper bound.

Parameters
upperan Oidx instance.
virtual void AgentXRegion::set_upper_bound ( u_int  u)
virtual
Oidx& AgentXRegion::upper ( )
inline

Member Data Documentation

OidxRange AgentXRegion::range
protected
bool AgentXRegion::single
protected
u_char AgentXRegion::subid
protected

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