pdf::ReceiversOperations< F > Class Template Reference

#include <pdf_observer.h>

Static Public Member Functions

static void clear (Receivers &receivers)
static bool remove_receiver (F p, Receivers &receivers)

Detailed Description

template<class F>
class pdf::ReceiversOperations< F >

Definition at line 181 of file pdf_observer.h.


Member Function Documentation

template<class F >
static void pdf::ReceiversOperations< F >::clear ( Receivers &  receivers  )  [inline, static]

Definition at line 187 of file pdf_observer.h.

00188         {
00189             ReceiversIter begin, end, it;
00190             begin = receivers.begin();
00191             end   = receivers.end();
00192             for(it = begin; it != end; ++it)
00193             {
00194                 delete (*it);
00195             }
00196             receivers.clear();
00197         }

template<class F >
static bool pdf::ReceiversOperations< F >::remove_receiver ( p,
Receivers &  receivers 
) [inline, static]

Definition at line 200 of file pdf_observer.h.

00201         {
00202             ReceiversIter begin, end, it;
00203             begin = receivers.begin();
00204             end   = receivers.end();
00205             for(it = begin; it != end; ++it)
00206             {
00207                 if ((*it)->compare(p))
00208                 {
00209                     delete (*it);
00210                     receivers.erase(it);
00211                     return true;
00212                 }
00213             }
00214             return false;
00215         }


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208