mongo::IdTracker Class Reference

#include <repl.h>

List of all members.

Public Member Functions

void haveId (const char *ns, const BSONObj &id, bool val)
bool haveId (const char *ns, const BSONObj &id)
void haveModId (const char *ns, const BSONObj &id, bool val)
bool haveModId (const char *ns, const BSONObj &id)
 IdTracker ()
bool inMem () const
void mayUpgradeStorage ()
void reset (int maxMem=replSettings.opIdMem)

Private Member Functions

template<class T >
bool get (T &ids, const char *ns, const BSONObj &id)
template<class T >
void set (T &ids, const char *ns, const BSONObj &id, bool val)
void upgrade (MemIds &a, DbIds &b)

Private Attributes

DbIds dbIds_
DbIds dbModIds_
bool inMem_
int maxMem_
MemIds memIds_
MemIds memModIds_

Detailed Description

Definition at line 249 of file repl.h.


Constructor & Destructor Documentation

mongo::IdTracker::IdTracker (  )  [inline]

Definition at line 251 of file repl.h.


Member Function Documentation

template<class T >
bool mongo::IdTracker::get ( T &  ids,
const char *  ns,
const BSONObj id 
) [inline, private]

Definition at line 303 of file repl.h.

void mongo::IdTracker::haveId ( const char *  ns,
const BSONObj id,
bool  val 
) [inline]

Definition at line 277 of file repl.h.

bool mongo::IdTracker::haveId ( const char *  ns,
const BSONObj id 
) [inline]

Definition at line 265 of file repl.h.

void mongo::IdTracker::haveModId ( const char *  ns,
const BSONObj id,
bool  val 
) [inline]

Definition at line 283 of file repl.h.

bool mongo::IdTracker::haveModId ( const char *  ns,
const BSONObj id 
) [inline]

Definition at line 271 of file repl.h.

bool mongo::IdTracker::inMem (  )  const [inline]

Definition at line 300 of file repl.h.

void mongo::IdTracker::mayUpgradeStorage (  )  [inline]

Definition at line 290 of file repl.h.

void mongo::IdTracker::reset ( int  maxMem = replSettings.opIdMem  )  [inline]

Definition at line 257 of file repl.h.

template<class T >
void mongo::IdTracker::set ( T &  ids,
const char *  ns,
const BSONObj id,
bool  val 
) [inline, private]

Definition at line 307 of file repl.h.

void mongo::IdTracker::upgrade ( MemIds a,
DbIds b 
) [inline, private]

Definition at line 310 of file repl.h.


Member Data Documentation

Definition at line 322 of file repl.h.

Definition at line 323 of file repl.h.

bool mongo::IdTracker::inMem_ [private]

Definition at line 324 of file repl.h.

Definition at line 325 of file repl.h.

Definition at line 320 of file repl.h.

Definition at line 321 of file repl.h.


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


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:55 2013