xorp

ModuleData Class Reference

Holds information about an XRL module that requested to be notified about a change. More...

#include <rt_tab_register.hh>

List of all members.

Public Member Functions

 ModuleData (const string &modulename)
 ModuleData Constructor.
const string & name () const
bool is_set () const
void set () const
 Set state indicating the XRL module needs to be notified about a change.
void clear () const
 Clear state indicating the XRL module needs to be notified about a change.
string str () const
bool operator== (const ModuleData &other) const
 Comparison operator for ModuleData class.
bool operator< (const ModuleData &other) const
 Less-than operator for ModuleData class.

Private Attributes

string _modulename
bool _is_set

Detailed Description

Holds information about an XRL module that requested to be notified about a change.


Constructor & Destructor Documentation

ModuleData::ModuleData ( const string &  modulename) [inline]

ModuleData Constructor.

Parameters:
modulenamethe XRL target name of the module that requested notification about a route change.

Member Function Documentation

bool ModuleData::is_set ( ) const [inline]
Returns:
true if the XRL module needs to be notified about a change.
const string& ModuleData::name ( ) const [inline]
Returns:
the XRL target name of the module.
bool ModuleData::operator< ( const ModuleData other) const [inline]

Less-than operator for ModuleData class.

This is needed so that ModuleData instances can be stored in some STL containers.

Parameters:
otherthe right-hand operand to compare against.
Returns:
true if the left-hand operand is considered smaller than the right-hand operand.
bool ModuleData::operator== ( const ModuleData other) const [inline]

Comparison operator for ModuleData class.

Two ModuleData instances are considered equal if they refer to the same XRL target, irrespective of the state of their flags.

Parameters:
otherthe right-hand operand to compare against.
Returns:
true if the left-hand operand is considered equal to the right-hand operand (i.e., if both operands refer to the same XRL target).
string ModuleData::str ( ) const [inline]
Returns:
string representation of this ModuleData for debugging purposes.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations