#include <namespace.h>
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 |
| NamespaceDetails * | details (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::Extra * | newExtra (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 |
Definition at line 506 of file namespace.h.
| mongo::NamespaceIndex::NamespaceIndex | ( | const string & | dir, | |
| const string & | database | |||
| ) | [inline] |
Definition at line 510 of file namespace.h.
| 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 |
friend class NamespaceCursor [friend] |
Definition at line 507 of file namespace.h.
string mongo::NamespaceIndex::database_ [private] |
Definition at line 572 of file namespace.h.
string mongo::NamespaceIndex::dir_ [private] |
Definition at line 571 of file namespace.h.
MongoMMF mongo::NamespaceIndex::f [private] |
Definition at line 569 of file namespace.h.
HashTable<Namespace,NamespaceDetails>* mongo::NamespaceIndex::ht [private] |
Definition at line 570 of file namespace.h.