xorp

MreSgKey Class Reference

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

#include <mrt.hh>

List of all members.

Public Member Functions

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

Private Attributes

const SourceGroup_source_group

Detailed Description

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


Constructor & Destructor Documentation

MreSgKey::MreSgKey ( 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 MreSgKey::operator< ( const MreSgKey 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 MreSgKey::operator== ( const MreSgKey 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& MreSgKey::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