mongo::NamespaceDetailsTransient Class Reference

#include <namespace.h>

List of all members.

Public Member Functions

void addedIndex ()
void clearQueryCache ()
void deletedIndex ()
const IndexSpecgetIndexSpec (const IndexDetails *details)
BSONObj indexForPattern (const QueryPattern &pattern)
set< string > & indexKeys ()
 NamespaceDetailsTransient (const char *ns)
void notifyOfWriteOp ()
long long nScannedForPattern (const QueryPattern &pattern)
void registerIndexForPattern (const QueryPattern &pattern, const BSONObj &indexKey, long long nScanned)

Static Public Member Functions

static NamespaceDetailsTransient_get (const char *ns)
static void clearForPrefix (const char *prefix)
static NamespaceDetailsTransientget_inlock (const char *ns)
static NamespaceDetailsTransientget_w (const char *ns)

Static Public Attributes

static mongo::mutex _qcMutex

Private Member Functions

 BOOST_STATIC_ASSERT (sizeof(NamespaceDetails)==496)
void computeIndexKeys ()
void reset ()

Private Attributes

set< string > _indexKeys
map< const IndexDetails
*, IndexSpec
_indexSpecs
bool _keysComputed
string _ns
map< QueryPattern, pair
< BSONObj, long long > > 
_qcCache
int _qcWriteCount

Static Private Attributes

static mongo::mutex _isMutex
static std::map< string,
shared_ptr
< NamespaceDetailsTransient > > 
_map

Detailed Description

Definition at line 405 of file namespace.h.


Constructor & Destructor Documentation

mongo::NamespaceDetailsTransient::NamespaceDetailsTransient ( const char *  ns  )  [inline]

Definition at line 414 of file namespace.h.


Member Function Documentation

NamespaceDetailsTransient & mongo::NamespaceDetailsTransient::_get ( const char *  ns  )  [inline, static]

Definition at line 496 of file namespace.h.

void mongo::NamespaceDetailsTransient::addedIndex (  )  [inline]

Definition at line 422 of file namespace.h.

mongo::NamespaceDetailsTransient::BOOST_STATIC_ASSERT ( sizeof(NamespaceDetails = =496  )  [private]
static void mongo::NamespaceDetailsTransient::clearForPrefix ( const char *  prefix  )  [static]
void mongo::NamespaceDetailsTransient::clearQueryCache (  )  [inline]

Definition at line 473 of file namespace.h.

void mongo::NamespaceDetailsTransient::computeIndexKeys (  )  [private]
void mongo::NamespaceDetailsTransient::deletedIndex (  )  [inline]

Definition at line 423 of file namespace.h.

static NamespaceDetailsTransient& mongo::NamespaceDetailsTransient::get_inlock ( const char *  ns  )  [inline, static]

Definition at line 470 of file namespace.h.

static NamespaceDetailsTransient& mongo::NamespaceDetailsTransient::get_w ( const char *  ns  )  [inline, static]

Definition at line 418 of file namespace.h.

const IndexSpec& mongo::NamespaceDetailsTransient::getIndexSpec ( const IndexDetails details  )  [inline]

Definition at line 451 of file namespace.h.

BSONObj mongo::NamespaceDetailsTransient::indexForPattern ( const QueryPattern pattern  )  [inline]

Definition at line 484 of file namespace.h.

set<string>& mongo::NamespaceDetailsTransient::indexKeys (  )  [inline]

Definition at line 439 of file namespace.h.

void mongo::NamespaceDetailsTransient::notifyOfWriteOp (  )  [inline]

Definition at line 478 of file namespace.h.

long long mongo::NamespaceDetailsTransient::nScannedForPattern ( const QueryPattern pattern  )  [inline]

Definition at line 487 of file namespace.h.

void mongo::NamespaceDetailsTransient::registerIndexForPattern ( const QueryPattern pattern,
const BSONObj indexKey,
long long  nScanned 
) [inline]

Definition at line 490 of file namespace.h.

void mongo::NamespaceDetailsTransient::reset (  )  [private]

Member Data Documentation

Definition at line 433 of file namespace.h.

Definition at line 448 of file namespace.h.

Definition at line 449 of file namespace.h.

Definition at line 432 of file namespace.h.

std::map< string, shared_ptr< NamespaceDetailsTransient > > mongo::NamespaceDetailsTransient::_map [static, private]

Definition at line 412 of file namespace.h.

Definition at line 410 of file namespace.h.

map< QueryPattern, pair< BSONObj, long long > > mongo::NamespaceDetailsTransient::_qcCache [private]

Definition at line 466 of file namespace.h.

Definition at line 468 of file namespace.h.

Definition at line 465 of file namespace.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:56 2013