mongo::FieldRange Class Reference

#include <queryutil.h>

List of all members.

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 FieldRangeoperator&= (const FieldRange &other)
const FieldRangeoperator-= (const FieldRange &other)
bool operator<= (const FieldRange &other)
const FieldRangeoperator|= (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

Detailed Description

Definition at line 57 of file queryutil.h.


Constructor & Destructor Documentation

mongo::FieldRange::FieldRange ( const BSONElement e = BSONObj().firstElement(),
bool  isNot = false,
bool  optimize = true 
)

Member Function Documentation

BSONObj mongo::FieldRange::addObj ( const BSONObj o  )  [private]
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.


Member Data Documentation

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.


The documentation for this class 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:55 2013