mongo::NamespaceIndex Class Reference

#include <namespace.h>

List of all members.

Public Member Functions

void add_ns (const char *ns, const NamespaceDetails &details)
void add_ns (const char *ns, DiskLoc &loc, bool capped)
bool allocated () const
NamespaceDetailsdetails (const char *ns)
bool exists () const
bool find (const char *ns, DiskLoc &loc)
void getNamespaces (list< string > &tofill, bool onlyCollections=true) const
void init ()
void kill_ns (const char *ns)
 NamespaceIndex (const string &dir, const string &database)
NamespaceDetails::ExtranewExtra (const char *ns, int n, NamespaceDetails *d)
boost::filesystem::path path () const

Private Member Functions

void maybeMkdir () const

Private Attributes

string database_
string dir_
MongoMMF f
HashTable< Namespace,
NamespaceDetails > * 
ht

Friends

class NamespaceCursor

Detailed Description

Definition at line 506 of file namespace.h.


Constructor & Destructor Documentation

mongo::NamespaceIndex::NamespaceIndex ( const string &  dir,
const string &  database 
) [inline]

Definition at line 510 of file namespace.h.


Member Function Documentation

void mongo::NamespaceIndex::add_ns ( const char *  ns,
const NamespaceDetails details 
) [inline]

Definition at line 522 of file namespace.h.

void mongo::NamespaceIndex::add_ns ( const char *  ns,
DiskLoc loc,
bool  capped 
) [inline]

Definition at line 518 of file namespace.h.

bool mongo::NamespaceIndex::allocated (  )  const [inline]

Definition at line 556 of file namespace.h.

NamespaceDetails* mongo::NamespaceIndex::details ( const char *  ns  )  [inline]

Definition at line 535 of file namespace.h.

bool mongo::NamespaceIndex::exists (  )  const
bool mongo::NamespaceIndex::find ( const char *  ns,
DiskLoc loc 
) [inline]

Definition at line 547 of file namespace.h.

void mongo::NamespaceIndex::getNamespaces ( list< string > &  tofill,
bool  onlyCollections = true 
) const
void mongo::NamespaceIndex::init (  ) 
void mongo::NamespaceIndex::kill_ns ( const char *  ns  ) 
void mongo::NamespaceIndex::maybeMkdir (  )  const [private]
NamespaceDetails::Extra* mongo::NamespaceIndex::newExtra ( const char *  ns,
int  n,
NamespaceDetails d 
)
boost::filesystem::path mongo::NamespaceIndex::path (  )  const

Friends And Related Function Documentation

friend class NamespaceCursor [friend]

Definition at line 507 of file namespace.h.


Member Data Documentation

Definition at line 572 of file namespace.h.

string mongo::NamespaceIndex::dir_ [private]

Definition at line 571 of file namespace.h.

Definition at line 569 of file namespace.h.

Definition at line 570 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