mongo::Mod Struct Reference
#include <update.h>
List of all members.
Public Types |
enum | Op {
INC,
SET,
PUSH,
PUSH_ALL,
PULL,
PULL_ALL,
POP,
UNSET,
BITAND,
BITOR,
BIT,
ADDTOSET,
RENAME_FROM,
RENAME_TO
} |
Public Member Functions |
void | _checkForAppending (const BSONElement &e) const |
bool | _pullElementMatch (BSONElement &toMatch) const |
template<class Builder > |
void | appendIncremented (Builder &bb, const BSONElement &in, ModState &ms) const |
template<class Builder > |
void | apply (Builder &b, BSONElement in, ModState &ms) const |
bool | arrayDep () const |
BSONObj | getEach () const |
void | IncrementMe (BSONElement &in) const |
void | incrementMe (BSONElement &in) const |
void | init (Op o, BSONElement &e) |
bool | isEach () const |
bool | isIndexed (const set< string > &idxKeys) const |
bool | operator< (const Mod &other) const |
void | parseEach (BSONElementSet &s) const |
const char * | renameFrom () const |
void | setFieldName (const char *s) |
Static Public Member Functions |
static bool | isIndexed (const string &fullName, const set< string > &idxKeys) |
Public Attributes |
BSONElement | elt |
const char * | fieldName |
boost::shared_ptr< Matcher > | matcher |
bool | matcherOnPrimitive |
enum mongo::Mod::Op | op |
const char * | shortFieldName |
Static Public Attributes |
static const char * | modNames [] |
static unsigned | modNamesNum |
Detailed Description
Definition at line 31 of file update.h.
Member Enumeration Documentation
- Enumerator:
INC |
|
SET |
|
PUSH |
|
PUSH_ALL |
|
PULL |
|
PULL_ALL |
|
POP |
|
UNSET |
|
BITAND |
|
BITOR |
|
BIT |
|
ADDTOSET |
|
RENAME_FROM |
|
RENAME_TO |
|
Definition at line 34 of file update.h.
Member Function Documentation
void mongo::Mod::_checkForAppending |
( |
const BSONElement & |
e |
) |
const [inline] |
bool mongo::Mod::_pullElementMatch |
( |
BSONElement & |
toMatch |
) |
const |
- Returns:
- true iff toMatch should be removed from the array
template<class Builder >
void mongo::Mod::appendIncremented |
( |
Builder & |
bb, |
|
|
const BSONElement & |
in, |
|
|
ModState & |
ms | |
|
) |
| | const [inline] |
bool mongo::Mod::arrayDep |
( |
|
) |
const [inline] |
BSONObj mongo::Mod::getEach |
( |
|
) |
const [inline] |
void mongo::Mod::IncrementMe |
( |
BSONElement & |
in |
) |
const [inline] |
void mongo::Mod::incrementMe |
( |
BSONElement & |
in |
) |
const [inline] |
- Parameters:
-
| in | incrememnts the actual value inside in |
Definition at line 74 of file update.h.
bool mongo::Mod::isEach |
( |
|
) |
const [inline] |
bool mongo::Mod::isIndexed |
( |
const set< string > & |
idxKeys |
) |
const [inline] |
static bool mongo::Mod::isIndexed |
( |
const string & |
fullName, |
|
|
const set< string > & |
idxKeys | |
|
) |
| | [inline, static] |
bool mongo::Mod::operator< |
( |
const Mod & |
other |
) |
const [inline] |
const char* mongo::Mod::renameFrom |
( |
|
) |
const [inline] |
void mongo::Mod::setFieldName |
( |
const char * |
s |
) |
[inline] |
Member Data Documentation
The documentation for this struct was generated from the following file: