RTPReceptionStatsDB::Iterator Class Reference

#include <RTPSource.hh>

Collaboration diagram for RTPReceptionStatsDB::Iterator:

Collaboration graph
[legend]

Public Member Functions

 Iterator (RTPReceptionStatsDB &receptionStatsDB)
virtual ~Iterator ()
RTPReceptionStatsnext (Boolean includeInactiveSources=False)

Private Attributes

HashTable::IteratorfIter

Detailed Description

Definition at line 120 of file RTPSource.hh.


Constructor & Destructor Documentation

RTPReceptionStatsDB::Iterator::Iterator ( RTPReceptionStatsDB receptionStatsDB  ) 

Definition at line 154 of file RTPSource.cpp.

00155   : fIter(HashTable::Iterator::create(*(receptionStatsDB.fTable))) {
00156 }

RTPReceptionStatsDB::Iterator::~Iterator (  )  [virtual]

Definition at line 158 of file RTPSource.cpp.

References fIter.

00158                                        {
00159   delete fIter;
00160 }


Member Function Documentation

RTPReceptionStats * RTPReceptionStatsDB::Iterator::next ( Boolean  includeInactiveSources = False  ) 

Definition at line 163 of file RTPSource.cpp.

References fIter, next(), NULL, and RTPReceptionStats::numPacketsReceivedSinceLastReset().

Referenced by RTCPInstance::enqueueCommonReportSuffix(), and next().

00163                                                                 {
00164   char const* key; // dummy
00165 
00166   // If asked, skip over any sources that haven't been active
00167   // since the last reset:
00168   RTPReceptionStats* stats;
00169   do {
00170     stats = (RTPReceptionStats*)(fIter->next(key));
00171   } while (stats != NULL && !includeInactiveSources
00172            && stats->numPacketsReceivedSinceLastReset() == 0);
00173 
00174   return stats;
00175 }


Field Documentation

HashTable::Iterator* RTPReceptionStatsDB::Iterator::fIter [private]

Definition at line 129 of file RTPSource.hh.

Referenced by next(), and ~Iterator().


The documentation for this class was generated from the following files:
Generated on Tue Oct 7 15:40:08 2008 for live by  doxygen 1.5.2