mongo::Matcher Class Reference
#include <matcher.h>
List of all members.
Public Member Functions |
void | addOrConstraint (const shared_ptr< FieldRangeVector > &frv) |
bool | atomic () const |
bool | hasType (BSONObj::MatchType type) const |
bool | keyMatch () const |
| Matcher (const BSONObj &pattern, bool subMatcher=false) |
bool | matches (const BSONObj &j, MatchDetails *details=0) |
void | popOrClause () |
bool | sameCriteriaCount (const Matcher &other) const |
string | toString () const |
| ~Matcher () |
Static Public Member Functions |
static int | opDirection (int op) |
Private Member Functions |
void | addBasic (const BSONElement &e, int c, bool isNot) |
bool | addOp (const BSONElement &e, const BSONElement &fe, bool isNot, const char *®ex, const char *&flags) |
void | addRegex (const char *fieldName, const char *regex, const char *flags, bool isNot=false) |
| Matcher (const Matcher &other, const BSONObj &constrainIndexKey) |
int | matchesDotted (const char *fieldName, const BSONElement &toMatch, const BSONObj &obj, int compareOp, const ElementMatcher &bm, bool isArr, MatchDetails *details) |
int | matchesNe (const char *fieldName, const BSONElement &toMatch, const BSONObj &obj, const ElementMatcher &bm, MatchDetails *details) |
void | parseOr (const BSONElement &e, bool subMatcher, list< shared_ptr< Matcher > > &matchers) |
bool | parseOrNor (const BSONElement &e, bool subMatcher) |
int | valuesMatch (const BSONElement &l, const BSONElement &r, int op, const ElementMatcher &bm) |
Private Attributes |
bool | _atomic |
vector< shared_ptr
< BSONObjBuilder > > | _builders |
list< shared_ptr< Matcher > > | _norMatchers |
vector< shared_ptr
< FieldRangeVector > > | _orConstraints |
list< shared_ptr< Matcher > > | _orMatchers |
bool | all |
vector< ElementMatcher > | basics |
BSONObj | constrainIndexKey_ |
bool | hasArray |
bool | haveNeg |
bool | haveSize |
BSONObj | jsobj |
int | nRegex |
RegexMatcher | regexs [4] |
Where * | where |
Friends |
class | CoveredIndexMatcher |
Detailed Description
Definition at line 121 of file matcher.h.
Constructor & Destructor Documentation
mongo::Matcher::Matcher |
( |
const BSONObj & |
pattern, |
|
|
bool |
subMatcher = false | |
|
) |
| | |
mongo::Matcher::~Matcher |
( |
|
) |
|
mongo::Matcher::Matcher |
( |
const Matcher & |
other, |
|
|
const BSONObj & |
constrainIndexKey | |
|
) |
| | [private] |
Member Function Documentation
void mongo::Matcher::addBasic |
( |
const BSONElement & |
e, |
|
|
int |
c, |
|
|
bool |
isNot | |
|
) |
| | [inline, private] |
bool mongo::Matcher::addOp |
( |
const BSONElement & |
e, |
|
|
const BSONElement & |
fe, |
|
|
bool |
isNot, |
|
|
const char *& |
regex, |
|
|
const char *& |
flags | |
|
) |
| | [private] |
void mongo::Matcher::addOrConstraint |
( |
const shared_ptr< FieldRangeVector > & |
frv |
) |
[inline] |
void mongo::Matcher::addRegex |
( |
const char * |
fieldName, |
|
|
const char * |
regex, |
|
|
const char * |
flags, |
|
|
bool |
isNot = false | |
|
) |
| | [private] |
bool mongo::Matcher::atomic |
( |
|
) |
const [inline] |
bool mongo::Matcher::keyMatch |
( |
|
) |
const [inline] |
static int mongo::Matcher::opDirection |
( |
int |
op |
) |
[inline, static] |
void mongo::Matcher::parseOr |
( |
const BSONElement & |
e, |
|
|
bool |
subMatcher, |
|
|
list< shared_ptr< Matcher > > & |
matchers | |
|
) |
| | [private] |
bool mongo::Matcher::parseOrNor |
( |
const BSONElement & |
e, |
|
|
bool |
subMatcher | |
|
) |
| | [private] |
void mongo::Matcher::popOrClause |
( |
|
) |
[inline] |
bool mongo::Matcher::sameCriteriaCount |
( |
const Matcher & |
other |
) |
const |
string mongo::Matcher::toString |
( |
|
) |
const [inline] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: