xorp

Mre< E > Class Template Reference

Template class for the Multicast Routing Entry. More...

#include <mrt.hh>

List of all members.

Public Member Functions

 Mre (const IPvX &source_addr, const IPvX &group_addr)
 Constructor for a given source and group address.
virtual ~Mre ()
 Destructor.
const SourceGroupsource_group () const
 Get the source-group entry.
const IPvXsource_addr () const
 Get the source address.
const IPvXgroup_addr () const
 Get the group address.
bool is_same_prefix_s (const IPvXNet &prefix_s) const
 Test if this entry matches a source address prefix.
bool is_same_prefix_g (const IPvXNet &prefix_g) const
 Test if this entry matches a group address prefix.
const Mrt< E >::sg_iterator & sg_key () const
 Get the source-group table iterator.
const Mrt< E >::gs_iterator & gs_key () const
 Get the group-source table iterator.
string str () const
 Convert this entry from binary form to presentation format.

Private Attributes

const SourceGroup _source_group
Mrt< E >::sg_iterator _sg_key
Mrt< E >::gs_iterator _gs_key

Friends

class Mrt< E >

Detailed Description

template<class E>
class Mre< E >

Template class for the Multicast Routing Entry.


Constructor & Destructor Documentation

template<class E>
Mre< E >::Mre ( const IPvX source_addr,
const IPvX group_addr 
) [inline]

Constructor for a given source and group address.

Parameters:
source_addrthe source address of the entry.
group_addrthe group address of the entry.

Member Function Documentation

template<class E>
const IPvX& Mre< E >::group_addr ( ) const [inline]

Get the group address.

Returns:
the group address of the entry.
template<class E>
const Mrt<E>::gs_iterator& Mre< E >::gs_key ( ) const [inline]

Get the group-source table iterator.

Returns:
the group-source table for this entry.
template<class E>
bool Mre< E >::is_same_prefix_g ( const IPvXNet prefix_g) const [inline]

Test if this entry matches a group address prefix.

Parameters:
prefix_gthe group address prefix to match against.
Returns:
true if the entry group address belongs to address prefix prefix_g, otherwise false.
template<class E>
bool Mre< E >::is_same_prefix_s ( const IPvXNet prefix_s) const [inline]

Test if this entry matches a source address prefix.

Parameters:
prefix_sthe source address prefix to match against.
Returns:
true if the entry source address belongs to address prefix prefix_s, otherwise false.
template<class E>
const Mrt<E>::sg_iterator& Mre< E >::sg_key ( ) const [inline]

Get the source-group table iterator.

Returns:
the source-group table iterator for this entry.
template<class E>
const IPvX& Mre< E >::source_addr ( ) const [inline]

Get the source address.

Returns:
the source address of the entry.
template<class E>
const SourceGroup& Mre< E >::source_group ( ) const [inline]

Get the source-group entry.

Returns:
a reference to the SourceGroup source-group entry
template<class E>
string Mre< E >::str ( ) const [inline]

Convert this entry from binary form to presentation format.

Returns:
C++ string with the human-readable ASCII representation of the entry.

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