xorp

MreGsKey Class Reference

Class for (S,G) lookup key (Group-first, Source-second priority). More...

#include <mrt.hh>

List of all members.

Public Member Functions

 MreGsKey (const SourceGroup &source_group)
 Constructor for a given SourceGroup entry.
const SourceGroupsource_group () const
 Get the corresponding SourceGroup entry.
bool operator< (const MreGsKey &other) const
 Less-Than Operator.
bool operator== (const MreGsKey &other) const
 Equality Operator.
MreGsKeyoperator= (const MreGsKey &rhs)

Private Attributes

const SourceGroup_source_group

Detailed Description

Class for (S,G) lookup key (Group-first, Source-second priority).


Constructor & Destructor Documentation

MreGsKey::MreGsKey ( const SourceGroup source_group) [inline]

Constructor for a given SourceGroup entry.

Parameters:
source_groupa reference to the corresponding (S,G) entry.

Member Function Documentation

bool MreGsKey::operator< ( const MreGsKey other) const [inline]

Less-Than Operator.

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

Equality Operator.

Parameters:
otherthe right-hand operand to compare against.
Returns:
true if the left-hand operand is numerically same as the right-hand operand.
const SourceGroup& MreGsKey::source_group ( ) const [inline]

Get the corresponding SourceGroup entry.

Returns:
a reference to the corresponding (S,G) entry.

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