SizeMatchExpression.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. "use strict"
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var SizeMatchExpression = module.exports = function (){
  4. }, klass = SizeMatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  5. // File: expression_array.h lines: 131-131
  6. // int _size; // >= 0 real, < 0, nothing will match
  7. proto._size = undefined;
  8. // File: expression_array.h lines: 131-131
  9. // int _size; // >= 0 real, < 0, nothing will match
  10. proto._size = undefined;
  11. /**
  12. *
  13. * This documentation was automatically generated. Please update when you touch this function.
  14. * @method SizeMatchExpression
  15. * @param
  16. *
  17. */
  18. proto.SizeMatchExpression = function SizeMatchExpression( /* SIZE */ ){
  19. // File: expression_array.h lines: 113-112
  20. // SizeMatchExpression() : ArrayMatchingMatchExpression( SIZE ){}
  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_array.cpp lines: 259-261
  31. // void SizeMatchExpression::debugString( StringBuilder& debug, int level ) const {
  32. // _debugAddSpace( debug, level );
  33. // debug << path() << " $size : " << _size << "\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_array.cpp lines: 264-269
  45. // bool SizeMatchExpression::equivalent( const MatchExpression* other ) const {
  46. // if ( matchType() != other->matchType() )
  47. // return false;
  48. //
  49. // const SizeMatchExpression* realOther = static_cast<const SizeMatchExpression*>( other );
  50. // return path() == realOther->path() && _size == realOther->_size;
  51. // }
  52. }
  53. /**
  54. *
  55. * This documentation was automatically generated. Please update when you touch this function.
  56. * @method getData
  57. * @param
  58. *
  59. */
  60. proto.getData = function getData( /* */ ){
  61. // File: expression_array.h lines: 128-127
  62. // int getData() const { return _size; }
  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( /* const StringData& path, int size */ ){
  72. // File: expression_array.cpp lines: 248-250
  73. // Status SizeMatchExpression::init( const StringData& path, int size ) {
  74. // _size = size;
  75. // return initPath( path );
  76. // }
  77. }
  78. /**
  79. *
  80. * This documentation was automatically generated. Please update when you touch this function.
  81. * @method matchesArray
  82. * @param
  83. *
  84. */
  85. proto.matchesArray = function matchesArray( /* const BSONObj& anArray, MatchDetails* details */ ){
  86. // File: expression_array.cpp lines: 253-256
  87. // bool SizeMatchExpression::matchesArray( const BSONObj& anArray, MatchDetails* details ) const {
  88. // if ( _size < 0 )
  89. // return false;
  90. // return anArray.nFields() == _size;
  91. // }
  92. }
  93. /**
  94. *
  95. * This documentation was automatically generated. Please update when you touch this function.
  96. * @method shallowClone
  97. * @param
  98. *
  99. */
  100. proto.shallowClone = function shallowClone( /* */ ){
  101. // File: expression_array.h lines: 116-119
  102. // virtual SizeMatchExpression* shallowClone() const {
  103. // SizeMatchExpression* e = new SizeMatchExpression();
  104. // e->init(path(), _size);
  105. // return e;
  106. // }
  107. }