NotMatchExpression.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. "use strict"
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var NotMatchExpression = module.exports = function (){
  4. }, klass = NotMatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  5. // File: expression_tree.h lines: 152-152
  6. // boost::scoped_ptr<MatchExpression> _exp;
  7. proto._exp = undefined;
  8. // File: expression_tree.h lines: 152-152
  9. // boost::scoped_ptr<MatchExpression> _exp;
  10. proto._exp = undefined;
  11. /**
  12. *
  13. * This documentation was automatically generated. Please update when you touch this function.
  14. * @method NotMatchExpression
  15. * @param
  16. *
  17. */
  18. proto.NotMatchExpression = function NotMatchExpression( /* NOT */ ){
  19. // File: expression_tree.h lines: 118-117
  20. // NotMatchExpression() : MatchExpression( NOT ){}
  21. }
  22. /**
  23. *
  24. * This documentation was automatically generated. Please update when you touch this function.
  25. * @method debugString
  26. * @param
  27. *
  28. */
  29. proto.debugString = function debugString( /* StringBuilder& debug, int level */ ){
  30. // File: expression_tree.cpp lines: 146-149
  31. // void NotMatchExpression::debugString( StringBuilder& debug, int level ) const {
  32. // _debugAddSpace( debug, level );
  33. // debug << "$not\n";
  34. // _exp->debugString( debug, level + 1 );
  35. // }
  36. }
  37. /**
  38. *
  39. * This documentation was automatically generated. Please update when you touch this function.
  40. * @method equivalent
  41. * @param
  42. *
  43. */
  44. proto.equivalent = function equivalent( /* const MatchExpression* other */ ){
  45. // File: expression_tree.cpp lines: 152-156
  46. // bool NotMatchExpression::equivalent( const MatchExpression* other ) const {
  47. // if ( matchType() != other->matchType() )
  48. // return false;
  49. //
  50. // return _exp->equivalent( other->getChild(0) );
  51. // }
  52. }
  53. /**
  54. *
  55. * This documentation was automatically generated. Please update when you touch this function.
  56. * @method getChild
  57. * @param
  58. *
  59. */
  60. proto.getChild = function getChild( /* size_t i */ ){
  61. // File: expression_tree.h lines: 148-147
  62. // virtual MatchExpression* getChild( size_t i ) const { return _exp.get(); }
  63. }
  64. /**
  65. *
  66. * This documentation was automatically generated. Please update when you touch this function.
  67. * @method init
  68. * @param
  69. *
  70. */
  71. proto.init = function init( /* MatchExpression* exp */ ){
  72. // File: expression_tree.h lines: 123-125
  73. // virtual Status init( MatchExpression* exp ) {
  74. // _exp.reset( exp );
  75. // return Status::OK();
  76. // }
  77. }
  78. /**
  79. *
  80. * This documentation was automatically generated. Please update when you touch this function.
  81. * @method matches
  82. * @param
  83. *
  84. */
  85. proto.matches = function matches( /* const MatchableDocument* doc, MatchDetails* details = 0 */ ){
  86. // File: expression_tree.h lines: 135-136
  87. // virtual bool matches( const MatchableDocument* doc, MatchDetails* details = 0 ) const {
  88. // return !_exp->matches( doc, NULL );
  89. // }
  90. }
  91. /**
  92. *
  93. * This documentation was automatically generated. Please update when you touch this function.
  94. * @method matchesSingleElement
  95. * @param
  96. *
  97. */
  98. proto.matchesSingleElement = function matchesSingleElement( /* const BSONElement& e */ ){
  99. // File: expression_tree.h lines: 139-140
  100. // virtual bool matchesSingleElement( const BSONElement& e ) const {
  101. // return !_exp->matchesSingleElement( e );
  102. // }
  103. }
  104. /**
  105. *
  106. * This documentation was automatically generated. Please update when you touch this function.
  107. * @method numChildren
  108. * @param
  109. *
  110. */
  111. proto.numChildren = function numChildren( /* */ ){
  112. // File: expression_tree.h lines: 147-146
  113. // virtual size_t numChildren() const { return 1; }
  114. }
  115. /**
  116. *
  117. * This documentation was automatically generated. Please update when you touch this function.
  118. * @method shallowClone
  119. * @param
  120. *
  121. */
  122. proto.shallowClone = function shallowClone( /* */ ){
  123. // File: expression_tree.h lines: 128-132
  124. // virtual MatchExpression* shallowClone() const {
  125. // NotMatchExpression* self = new NotMatchExpression();
  126. // MatchExpression* child = _exp->shallowClone();
  127. // self->init(child);
  128. // return self;
  129. // }
  130. }