| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- "use strict"
- // Autogenerated by cport.py on 2013-09-17 14:37
- var InMatchExpression = module.exports = function (){
- }, klass = InMatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
- // File: expression_leaf.h lines: 294-294
- // ArrayFilterEntries _arrayEntries;
- proto._arrayEntries = undefined;
- // File: expression_leaf.h lines: 294-294
- // ArrayFilterEntries _arrayEntries;
- proto._arrayEntries = undefined;
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method InMatchExpression
- * @param
- *
- */
- proto.InMatchExpression = function InMatchExpression( /* MATCH_IN */ ){
- // File: expression_leaf.h lines: 275-274
- // InMatchExpression() : LeafMatchExpression( MATCH_IN ){}
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method _matchesRealElement
- * @param
- *
- */
- proto._matchesRealElement = function _matchesRealElement( /* const BSONElement& e */ ){
- // File: expression_leaf.cpp lines: 422-431
- // bool InMatchExpression::_matchesRealElement( const BSONElement& e ) const {
- // if ( _arrayEntries.contains( e ) )
- // return true;
- //
- // for ( unsigned i = 0; i < _arrayEntries.numRegexes(); i++ ) {
- // if ( _arrayEntries.regex(i)->matchesSingleElement( e ) )
- // return true;
- // }
- //
- // return false;
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method copyTo
- * @param
- *
- */
- proto.copyTo = function copyTo( /* InMatchExpression* toFillIn */ ){
- // File: expression_leaf.cpp lines: 481-483
- // void InMatchExpression::copyTo( InMatchExpression* toFillIn ) const {
- // toFillIn->init( path() );
- // _arrayEntries.copyTo( toFillIn->_arrayEntries );
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method debugString
- * @param
- *
- */
- proto.debugString = function debugString( /* StringBuilder& debug, int level */ ){
- // File: expression_leaf.cpp lines: 455-463
- // void InMatchExpression::debugString( StringBuilder& debug, int level ) const {
- // _debugAddSpace( debug, level );
- // debug << path() << ";$in: TODO ";
- // MatchExpression::TagData* td = getTag();
- // if (NULL != td) {
- // debug << " ";
- // td->debugString(&debug);
- // }
- // debug << "\n";
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method equivalent
- * @param
- *
- */
- proto.equivalent = function equivalent( /* const MatchExpression* other */ ){
- // File: expression_leaf.cpp lines: 466-472
- // bool InMatchExpression::equivalent( const MatchExpression* other ) const {
- // if ( matchType() != other->matchType() )
- // return false;
- // const InMatchExpression* realOther = static_cast<const InMatchExpression*>( other );
- // return
- // path() == realOther->path() &&
- // _arrayEntries.equivalent( realOther->_arrayEntries );
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method getArrayFilterEntries
- * @param
- *
- */
- proto.getArrayFilterEntries = function getArrayFilterEntries( /* */ ){
- // File: expression_leaf.h lines: 280-279
- // ArrayFilterEntries* getArrayFilterEntries() { return &_arrayEntries; }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method getData
- * @param
- *
- */
- proto.getData = function getData( /* */ ){
- // File: expression_leaf.h lines: 290-289
- // const ArrayFilterEntries& getData() const { return _arrayEntries; }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method init
- * @param
- *
- */
- proto.init = function init( /* const StringData& path */ ){
- // File: expression_leaf.cpp lines: 418-419
- // Status InMatchExpression::init( const StringData& path ) {
- // return initPath( path );
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method matchesSingleElement
- * @param
- *
- */
- proto.matchesSingleElement = function matchesSingleElement( /* const BSONElement& e */ ){
- // File: expression_leaf.cpp lines: 434-452
- // bool InMatchExpression::matchesSingleElement( const BSONElement& e ) const {
- // if ( _arrayEntries.hasNull() && e.eoo() )
- // return true;
- //
- // if ( _matchesRealElement( e ) )
- // return true;
- //
- // /*
- // if ( e.type() == Array ) {
- // BSONObjIterator i( e.Obj() );
- // while ( i.more() ) {
- // BSONElement sub = i.next();
- // if ( _matchesRealElement( sub ) )
- // return true;
- // }
- // }
- // */
- //
- // return false;
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method shallowClone
- * @param
- *
- */
- proto.shallowClone = function shallowClone( /* */ ){
- // File: expression_leaf.cpp lines: 475-478
- // LeafMatchExpression* InMatchExpression::shallowClone() const {
- // InMatchExpression* next = new InMatchExpression();
- // copyTo( next );
- // return next;
- // }
- }
|