#include <queryutil.h>
Public Member Functions | |
bool | empty () const |
bool | equality () const |
FieldRange (const BSONElement &e=BSONObj().firstElement(), bool isNot=false, bool optimize=true) | |
string | getSpecial () const |
bool | inQuery () const |
const vector< FieldInterval > & | intervals () const |
void | makeEmpty () |
BSONElement | max () const |
bool | maxInclusive () const |
BSONElement | min () const |
bool | minInclusive () const |
bool | nontrivial () const |
const FieldRange & | operator&= (const FieldRange &other) |
const FieldRange & | operator-= (const FieldRange &other) |
bool | operator<= (const FieldRange &other) |
const FieldRange & | operator|= (const FieldRange &other) |
void | reverse (FieldRange &ret) const |
void | setExclusiveBounds () |
Private Member Functions | |
BSONObj | addObj (const BSONObj &o) |
void | finishOperation (const vector< FieldInterval > &newIntervals, const FieldRange &other) |
Private Attributes | |
vector< FieldInterval > | _intervals |
vector< BSONObj > | _objData |
string | _special |
Definition at line 57 of file queryutil.h.
mongo::FieldRange::FieldRange | ( | const BSONElement & | e = BSONObj().firstElement() , |
|
bool | isNot = false , |
|||
bool | optimize = true | |||
) |
bool mongo::FieldRange::empty | ( | ) | const [inline] |
Definition at line 94 of file queryutil.h.
bool mongo::FieldRange::equality | ( | ) | const [inline] |
Definition at line 69 of file queryutil.h.
void mongo::FieldRange::finishOperation | ( | const vector< FieldInterval > & | newIntervals, | |
const FieldRange & | other | |||
) | [private] |
string mongo::FieldRange::getSpecial | ( | ) | const [inline] |
Definition at line 97 of file queryutil.h.
bool mongo::FieldRange::inQuery | ( | ) | const [inline] |
Definition at line 76 of file queryutil.h.
const vector< FieldInterval >& mongo::FieldRange::intervals | ( | ) | const [inline] |
Definition at line 96 of file queryutil.h.
void mongo::FieldRange::makeEmpty | ( | ) | [inline] |
Definition at line 95 of file queryutil.h.
BSONElement mongo::FieldRange::max | ( | ) | const [inline] |
Definition at line 66 of file queryutil.h.
bool mongo::FieldRange::maxInclusive | ( | ) | const [inline] |
Definition at line 68 of file queryutil.h.
BSONElement mongo::FieldRange::min | ( | ) | const [inline] |
Definition at line 65 of file queryutil.h.
bool mongo::FieldRange::minInclusive | ( | ) | const [inline] |
Definition at line 67 of file queryutil.h.
bool mongo::FieldRange::nontrivial | ( | ) | const [inline] |
Definition at line 87 of file queryutil.h.
const FieldRange& mongo::FieldRange::operator&= | ( | const FieldRange & | other | ) |
const FieldRange& mongo::FieldRange::operator-= | ( | const FieldRange & | other | ) |
bool mongo::FieldRange::operator<= | ( | const FieldRange & | other | ) |
const FieldRange& mongo::FieldRange::operator|= | ( | const FieldRange & | other | ) |
void mongo::FieldRange::reverse | ( | FieldRange & | ret | ) | const [inline] |
Definition at line 106 of file queryutil.h.
void mongo::FieldRange::setExclusiveBounds | ( | ) | [inline] |
Definition at line 98 of file queryutil.h.
vector< FieldInterval > mongo::FieldRange::_intervals [private] |
Definition at line 120 of file queryutil.h.
vector< BSONObj > mongo::FieldRange::_objData [private] |
Definition at line 121 of file queryutil.h.
string mongo::FieldRange::_special [private] |
Definition at line 122 of file queryutil.h.