mongo::Namespace Class Reference

#include <namespace.h>

List of all members.

Public Types

enum  MaxNsLenValue { MaxNsLen = 128 }

Public Member Functions

string extraName (int i) const
string getSisterNS (const char *local) const
bool hasDollarSign () const
int hash () const
bool isExtra () const
void kill ()
 Namespace (const char *ns)
 operator string () const
Namespaceoperator= (const char *ns)
bool operator== (const Namespace &r) const
bool operator== (const char *r) const
string toString () const

Private Attributes

char buf [MaxNsLen]

Detailed Description

Definition at line 60 of file namespace.h.


Member Enumeration Documentation

Enumerator:
MaxNsLen 

Definition at line 84 of file namespace.h.


Constructor & Destructor Documentation

mongo::Namespace::Namespace ( const char *  ns  )  [inline, explicit]

Definition at line 62 of file namespace.h.


Member Function Documentation

string mongo::Namespace::extraName ( int  i  )  const [inline]

Definition at line 41 of file namespace-inl.h.

string mongo::Namespace::getSisterNS ( const char *  local  )  const [inline]

( foo.bar ).getSisterNS( "blah" ) == foo.blah perhaps this should move to the NamespaceString helper?

Definition at line 65 of file namespace-inl.h.

bool mongo::Namespace::hasDollarSign (  )  const [inline]

Definition at line 65 of file namespace.h.

int mongo::Namespace::hash (  )  const [inline]

Definition at line 54 of file namespace-inl.h.

bool mongo::Namespace::isExtra (  )  const [inline]

Definition at line 49 of file namespace-inl.h.

void mongo::Namespace::kill (  )  [inline]

Definition at line 66 of file namespace.h.

mongo::Namespace::operator string (  )  const [inline]

Definition at line 71 of file namespace.h.

Namespace & mongo::Namespace::operator= ( const char *  ns  )  [inline]

Definition at line 25 of file namespace-inl.h.

bool mongo::Namespace::operator== ( const Namespace r  )  const [inline]

Definition at line 68 of file namespace.h.

bool mongo::Namespace::operator== ( const char *  r  )  const [inline]

Definition at line 67 of file namespace.h.

string mongo::Namespace::toString (  )  const [inline]

Definition at line 70 of file namespace.h.


Member Data Documentation

char mongo::Namespace::buf[MaxNsLen] [private]

Definition at line 86 of file namespace.h.


The documentation for this class was generated from the following files:
 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