mongo::ModSetState Class Reference
#include <update.h>
List of all members.
Detailed Description
this is used to hold state, meta data while applying a ModSet to a BSONObj the goal is to make ModSet const so its re-usable
Definition at line 506 of file update.h.
Member Typedef Documentation
Constructor & Destructor Documentation
mongo::ModSetState::ModSetState |
( |
const BSONObj & |
obj |
) |
[inline, private] |
Member Function Documentation
template<class Builder >
void mongo::ModSetState::_appendNewFromMods |
( |
const string & |
root, |
|
|
ModState & |
m, |
|
|
Builder & |
b, |
|
|
set< string > & |
onedownseen | |
|
) |
| | [inline, private] |
bool mongo::ModSetState::amIInPlacePossible |
( |
bool |
inPlacePossible |
) |
[inline, private] |
- Returns:
- if in place is still possible
Definition at line 525 of file update.h.
template<class Builder >
void mongo::ModSetState::appendNewFromMod |
( |
ModState & |
ms, |
|
|
Builder & |
b | |
|
) |
| | [inline, private] |
void mongo::ModSetState::appendSizeSpecForArrayDepMods |
( |
BSONObjBuilder & |
b |
) |
const [inline] |
void mongo::ModSetState::applyModsInPlace |
( |
bool |
isOnDisk |
) |
|
modified underlying _obj
- Parameters:
-
| isOnDisk | - true means this is an on disk object, and this update needs to be made durable |
bool mongo::ModSetState::canApplyInPlace |
( |
|
) |
const [inline] |
BSONObj mongo::ModSetState::createNewFromMods |
( |
|
) |
|
template<class Builder >
void mongo::ModSetState::createNewFromMods |
( |
const string & |
root, |
|
|
Builder & |
b, |
|
|
const BSONObj & |
obj | |
|
) |
| | [inline, private] |
BSONObj mongo::ModSetState::getOpLogRewrite |
( |
|
) |
const [inline] |
bool mongo::ModSetState::haveArrayDepMod |
( |
|
) |
const [inline] |
bool mongo::ModSetState::needOpLogRewrite |
( |
|
) |
const [inline] |
string mongo::ModSetState::toString |
( |
|
) |
const |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: