ExistsMatchExpression.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. "use strict"
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var ExistsMatchExpression = module.exports = function (){
  4. }, klass = ExistsMatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  5. /**
  6. *
  7. * This documentation was automatically generated. Please update when you touch this function.
  8. * @method ExistsMatchExpression
  9. * @param
  10. *
  11. */
  12. proto.ExistsMatchExpression = function ExistsMatchExpression( /* EXISTS */ ){
  13. // File: expression_leaf.h lines: 216-215
  14. // ExistsMatchExpression() : LeafMatchExpression( EXISTS ){}
  15. }
  16. /**
  17. *
  18. * This documentation was automatically generated. Please update when you touch this function.
  19. * @method debugString
  20. * @param
  21. *
  22. */
  23. proto.debugString = function debugString( /* StringBuilder& debug, int level */ ){
  24. // File: expression_leaf.cpp lines: 286-294
  25. // void ExistsMatchExpression::debugString( StringBuilder& debug, int level ) const {
  26. // _debugAddSpace( debug, level );
  27. // debug << path() << " exists";
  28. // MatchExpression::TagData* td = getTag();
  29. // if (NULL != td) {
  30. // debug << " ";
  31. // td->debugString(&debug);
  32. // }
  33. // debug << "\n";
  34. // }
  35. }
  36. /**
  37. *
  38. * This documentation was automatically generated. Please update when you touch this function.
  39. * @method equivalent
  40. * @param
  41. *
  42. */
  43. proto.equivalent = function equivalent( /* const MatchExpression* other */ ){
  44. // File: expression_leaf.cpp lines: 297-302
  45. // bool ExistsMatchExpression::equivalent( const MatchExpression* other ) const {
  46. // if ( matchType() != other->matchType() )
  47. // return false;
  48. //
  49. // const ExistsMatchExpression* realOther = static_cast<const ExistsMatchExpression*>( other );
  50. // return path() == realOther->path();
  51. // }
  52. }
  53. /**
  54. *
  55. * This documentation was automatically generated. Please update when you touch this function.
  56. * @method init
  57. * @param
  58. *
  59. */
  60. proto.init = function init( /* const StringData& path */ ){
  61. // File: expression_leaf.cpp lines: 278-279
  62. // Status ExistsMatchExpression::init( const StringData& path ) {
  63. // return initPath( path );
  64. // }
  65. }
  66. /**
  67. *
  68. * This documentation was automatically generated. Please update when you touch this function.
  69. * @method matchesSingleElement
  70. * @param
  71. *
  72. */
  73. proto.matchesSingleElement = function matchesSingleElement( /* const BSONElement& e */ ){
  74. // File: expression_leaf.cpp lines: 282-283
  75. // bool ExistsMatchExpression::matchesSingleElement( const BSONElement& e ) const {
  76. // return !e.eoo();
  77. // }
  78. }
  79. /**
  80. *
  81. * This documentation was automatically generated. Please update when you touch this function.
  82. * @method shallowClone
  83. * @param
  84. *
  85. */
  86. proto.shallowClone = function shallowClone( /* */ ){
  87. // File: expression_leaf.h lines: 220-223
  88. // virtual LeafMatchExpression* shallowClone() const {
  89. // ExistsMatchExpression* e = new ExistsMatchExpression();
  90. // e->init( path() );
  91. // return e;
  92. // }
  93. }