mongo::DiagStr Class Reference

#include <value.h>

List of all members.

Public Member Functions

 DiagStr ()
const char * get () const
void set (const char *s)

Private Attributes

char buf1 [256]
char buf2 [256]
char * p

Detailed Description

this string COULD be mangled but with the double buffering, assuming writes are infrequent, it's unlikely. thus, this is reasonable for lockless setting of diagnostic strings, where their content isn't critical.

Definition at line 67 of file value.h.


Constructor & Destructor Documentation

mongo::DiagStr::DiagStr (  )  [inline]

Definition at line 72 of file value.h.


Member Function Documentation

const char* mongo::DiagStr::get (  )  const [inline]

Definition at line 78 of file value.h.

void mongo::DiagStr::set ( const char *  s  )  [inline]

Definition at line 80 of file value.h.


Member Data Documentation

char mongo::DiagStr::buf1[256] [private]

Definition at line 68 of file value.h.

char mongo::DiagStr::buf2[256] [private]

Definition at line 69 of file value.h.

char* mongo::DiagStr::p [private]

Definition at line 70 of file value.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