| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- "use strict"
- // Autogenerated by cport.py on 2013-09-17 14:37
- var MatchExpression = module.exports = function (){
- }, klass = MatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
- // File: expression.h lines: 172-172
- // MatchType _matchType;
- proto._matchType = undefined;
- // File: expression.h lines: 173-173
- // boost::scoped_ptr<TagData> _tagData;
- proto._tagData = undefined;
- // File: expression.h lines: 172-172
- // MatchType _matchType;
- proto._matchType = undefined;
- // File: expression.h lines: 173-173
- // boost::scoped_ptr<TagData> _tagData;
- proto._tagData = undefined;
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method MatchExpression
- * @param
- *
- */
- proto.MatchExpression = function MatchExpression( /* MatchType type */ ){
- // File: expression.cpp lines: 28-28
- // MatchExpression::MatchExpression( MatchType type )
- // : _matchType( type ) { }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method _debugAddSpace
- * @param
- *
- */
- proto._debugAddSpace = function _debugAddSpace( /* StringBuilder& debug, int level */ ){
- // File: expression.cpp lines: 37-39
- // void MatchExpression::_debugAddSpace( StringBuilder& debug, int level ) const {
- // for ( int i = 0; i < level; i++ )
- // debug << " ";
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method getChild
- * @param
- *
- */
- proto.getChild = function getChild( /* size_t i */ ){
- // File: expression.h lines: 78-77
- // virtual const MatchExpression* getChild( size_t i ) const { return NULL; }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method getTag
- * @param
- *
- */
- proto.getTag = function getTag( /* */ ){
- // File: expression.h lines: 159-158
- // TagData* getTag() const { return _tagData.get(); }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method isArray
- * @param
- *
- */
- proto.isArray = function isArray( /* */ ){
- // File: expression.h lines: 111-113
- // bool isArray() const {
- // return SIZE == _matchType || ALL == _matchType || ELEM_MATCH_VALUE == _matchType
- // || ELEM_MATCH_OBJECT == _matchType;
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method isLeaf
- * @param
- *
- */
- proto.isLeaf = function isLeaf( /* */ ){
- // File: expression.h lines: 124-125
- // bool isLeaf() const {
- // return !isArray() && !isLogical();
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method isLogical
- * @param
- *
- */
- proto.isLogical = function isLogical( /* */ ){
- // File: expression.h lines: 100-101
- // bool isLogical() const {
- // return AND == _matchType || OR == _matchType || NOT == _matchType || NOR == _matchType;
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method matchType
- * @param
- *
- */
- proto.matchType = function matchType( /* */ ){
- // File: expression.h lines: 67-66
- // MatchType matchType() const { return _matchType; }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method matchesBSON
- * @param
- *
- */
- proto.matchesBSON = function matchesBSON( /* const BSONObj& doc, MatchDetails* details */ ){
- // File: expression.cpp lines: 42-44
- // bool MatchExpression::matchesBSON( const BSONObj& doc, MatchDetails* details ) const {
- // BSONMatchableDocument mydoc( doc );
- // return matches( &mydoc, details );
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method numChildren
- * @param
- *
- */
- proto.numChildren = function numChildren( /* */ ){
- // File: expression.h lines: 73-72
- // virtual size_t numChildren() const { return 0; }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method path
- * @param
- *
- */
- proto.path = function path( /* */ ){
- // File: expression.h lines: 83-82
- // virtual const StringData path() const { return StringData(); }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method setTag
- * @param
- *
- */
- proto.setTag = function setTag( /* TagData* data */ ){
- // File: expression.h lines: 158-157
- // void setTag(TagData* data) { _tagData.reset(data); }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method toString
- * @param
- *
- */
- proto.toString = function toString( /* */ ){
- // File: expression.cpp lines: 31-34
- // string MatchExpression::toString() const {
- // StringBuilder buf;
- // debugString( buf, 0 );
- // return buf.str();
- // }
- }
- /**
- *
- * This documentation was automatically generated. Please update when you touch this function.
- * @method ~MatchExpression
- * @param
- *
- */
- proto.~MatchExpression = function ~MatchExpression( /* */ ){
- // File: expression.h lines: 58-57
- // virtual ~MatchExpression(){}
- }
|