xorp

VifCount Class Reference

Class that contains various counters per virtual interface. More...

#include <mfea_mrouter.hh>

List of all members.

Public Member Functions

 VifCount ()
 Default constructor.
VifCountoperator= (const VifCount &vif_count)
 Assignment Operator.
size_t icount () const
 Get the input packet count.
size_t ocount () const
 Get the output packet count.
size_t ibytes () const
 Get the input byte count.
size_t obytes () const
 Get the output byte count.
void set_icount (size_t v)
 Set the input packet count.
void set_ocount (size_t v)
 Set the output packet count.
void set_ibytes (size_t v)
 Set the input byte count.
void set_obytes (size_t v)
 Set the output byte count.
bool is_valid () const
 Test if this entry contains valid counters.

Private Attributes

size_t _icount
size_t _ocount
size_t _ibytes
size_t _obytes

Detailed Description

Class that contains various counters per virtual interface.

All counters are related to the multicast data packets per virtual interface.


Member Function Documentation

size_t VifCount::ibytes ( ) const [inline]

Get the input byte count.

Returns:
the input byte count.
size_t VifCount::icount ( ) const [inline]

Get the input packet count.

Returns:
the input packet count.
bool VifCount::is_valid ( ) const [inline]

Test if this entry contains valid counters.

Returns:
true if this entry contains valid counters, otherwise false.
size_t VifCount::obytes ( ) const [inline]

Get the output byte count.

Returns:
the output byte count.
size_t VifCount::ocount ( ) const [inline]

Get the output packet count.

Returns:
the output packet count.
VifCount& VifCount::operator= ( const VifCount vif_count) [inline]

Assignment Operator.

Parameters:
vif_countthe value to assign to this entry.
Returns:
the entry with the new value assigned.
void VifCount::set_ibytes ( size_t  v) [inline]

Set the input byte count.

Parameters:
vthe value to assign to the data byte count.
void VifCount::set_icount ( size_t  v) [inline]

Set the input packet count.

Parameters:
vthe value to assign to the data packet count.
void VifCount::set_obytes ( size_t  v) [inline]

Set the output byte count.

Parameters:
vthe value to assign to the output byte count.
void VifCount::set_ocount ( size_t  v) [inline]

Set the output packet count.

Parameters:
vthe value to assign to the output packet count.

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