reSIProcate/DialogUsageManager  9694
Classes | Defines | Functions
InMemorySyncRegDb.cxx File Reference
#include "resip/dum/InMemorySyncRegDb.hxx"
#include "rutil/Timer.hxx"
#include "rutil/Logger.hxx"
#include "rutil/WinLeakCheck.hxx"
Include dependency graph for InMemorySyncRegDb.cxx:

Go to the source code of this file.

Classes

class  RemoveIfRequired

Defines

#define RESIPROCATE_SUBSYSTEM   Subsystem::DUM

Functions

void contactsRemoveIfRequired (ContactList &contacts, UInt64 &now, unsigned int removeLingerSecs)

Define Documentation

#define RESIPROCATE_SUBSYSTEM   Subsystem::DUM

Definition at line 8 of file InMemorySyncRegDb.cxx.


Function Documentation

void contactsRemoveIfRequired ( ContactList &  contacts,
UInt64 now,
unsigned int  removeLingerSecs 
)

Definition at line 39 of file InMemorySyncRegDb.cxx.

References RemoveIfRequired::mustRemove().

Referenced by resip::InMemorySyncRegDb::getContacts(), resip::InMemorySyncRegDb::getContactsFull(), and resip::InMemorySyncRegDb::initialSync().

{
   RemoveIfRequired rei(now, removeLingerSecs);
#ifdef __SUNPRO_CC
   for(ContactList::iterator i = contacts.begin(); i != contacts.end(); )
   {
      if(rei.mustRemove(*i))
         i = contacts.erase(i);
      else
         ++i;
   }
#else
   contacts.remove_if(rei);
#endif
}

Here is the call graph for this function: