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< Matchermatcher
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]

Definition at line 202 of file update.h.

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]
template<class Builder >
void mongo::Mod::apply ( Builder &  b,
BSONElement  in,
ModState ms 
) const [inline]
bool mongo::Mod::arrayDep (  )  const [inline]

Definition at line 114 of file update.h.

BSONObj mongo::Mod::getEach (  )  const [inline]

Definition at line 221 of file update.h.

void mongo::Mod::IncrementMe ( BSONElement in  )  const [inline]

Definition at line 90 of file update.h.

void mongo::Mod::incrementMe ( BSONElement in  )  const [inline]
Parameters:
in incrememnts the actual value inside in

Definition at line 74 of file update.h.

void mongo::Mod::init ( Op  o,
BSONElement e 
) [inline]

Definition at line 46 of file update.h.

bool mongo::Mod::isEach (  )  const [inline]

Definition at line 212 of file update.h.

bool mongo::Mod::isIndexed ( const set< string > &  idxKeys  )  const [inline]

Definition at line 143 of file update.h.

static bool mongo::Mod::isIndexed ( const string &  fullName,
const set< string > &  idxKeys 
) [inline, static]

Definition at line 125 of file update.h.

bool mongo::Mod::operator< ( const Mod other  )  const [inline]

Definition at line 110 of file update.h.

void mongo::Mod::parseEach ( BSONElementSet s  )  const [inline]

Definition at line 225 of file update.h.

const char* mongo::Mod::renameFrom (  )  const [inline]

Definition at line 232 of file update.h.

void mongo::Mod::setFieldName ( const char *  s  )  [inline]

Definition at line 62 of file update.h.


Member Data Documentation

Definition at line 42 of file update.h.

const char* mongo::Mod::fieldName

Definition at line 39 of file update.h.

boost::shared_ptr<Matcher> mongo::Mod::matcher

Definition at line 43 of file update.h.

Definition at line 44 of file update.h.

const char* mongo::Mod::modNames[] [static]

Definition at line 36 of file update.h.

unsigned mongo::Mod::modNamesNum [static]

Definition at line 37 of file update.h.

Definition at line 40 of file update.h.


The documentation for this struct 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:56 2013