mongo::BSONElementManipulator Class Reference

#include <jsobjmanipulator.h>

List of all members.

Public Member Functions

 BSONElementManipulator (const BSONElement &element)
void initTimestamp ()
void ReplaceTypeAndValue (const BSONElement &e)
void replaceTypeAndValue (const BSONElement &e)
void SetInt (int n)
void setInt (int n)
void SetLong (long long n)
void setLong (long long n)
void SetNumber (double d)
void setNumber (double d)

Static Public Member Functions

static void lookForTimestamps (const BSONObj &obj)

Private Member Functions

char * data ()
char * value ()

Static Private Member Functions

static char * nonConst (const char *s)

Private Attributes

const BSONElement _element

Detailed Description

Manipulate the binary representation of a BSONElement in-place. Careful, this casts away const.

Definition at line 29 of file jsobjmanipulator.h.


Constructor & Destructor Documentation

mongo::BSONElementManipulator::BSONElementManipulator ( const BSONElement element  )  [inline]

Definition at line 31 of file jsobjmanipulator.h.


Member Function Documentation

char* mongo::BSONElementManipulator::data (  )  [inline, private]

Definition at line 107 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::initTimestamp (  ) 

Replace a Timestamp type with a Date type initialized to OpTime::now().asDate()

static void mongo::BSONElementManipulator::lookForTimestamps ( const BSONObj obj  )  [inline, static]

Definition at line 90 of file jsobjmanipulator.h.

static char* mongo::BSONElementManipulator::nonConst ( const char *  s  )  [inline, static, private]

Definition at line 109 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::ReplaceTypeAndValue ( const BSONElement e  )  [inline]

Definition at line 79 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::replaceTypeAndValue ( const BSONElement e  )  [inline]

Replace the type and value of the element with the type and value of e, preserving the original fieldName

Definition at line 73 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::SetInt ( int  n  )  [inline]

Definition at line 65 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::setInt ( int  n  )  [inline]

Definition at line 61 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::SetLong ( long long  n  )  [inline]

Definition at line 57 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::setLong ( long long  n  )  [inline]

Definition at line 53 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::SetNumber ( double  d  )  [inline]

Definition at line 46 of file jsobjmanipulator.h.

void mongo::BSONElementManipulator::setNumber ( double  d  )  [inline]

Change the value, in place, of the number.

Definition at line 41 of file jsobjmanipulator.h.

char* mongo::BSONElementManipulator::value (  )  [inline, private]

Definition at line 108 of file jsobjmanipulator.h.


Member Data Documentation

Definition at line 111 of file jsobjmanipulator.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:53 2013