GeoNearMatchExpression.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. "use strict"
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var GeoNearMatchExpression = module.exports = function (){
  4. }, klass = GeoNearMatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  5. // File: expression_geo.h lines: 66-66
  6. // NearQuery _query;
  7. proto._query = undefined;
  8. // File: expression_geo.h lines: 66-66
  9. // NearQuery _query;
  10. proto._query = undefined;
  11. /**
  12. *
  13. * This documentation was automatically generated. Please update when you touch this function.
  14. * @method GeoNearMatchExpression
  15. * @param
  16. *
  17. */
  18. proto.GeoNearMatchExpression = function GeoNearMatchExpression( /* GEO_NEAR */ ){
  19. // File: expression_geo.h lines: 50-49
  20. // GeoNearMatchExpression() : LeafMatchExpression( GEO_NEAR ){}
  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_geo.cpp lines: 90-98
  31. // void GeoNearMatchExpression::debugString( StringBuilder& debug, int level ) const {
  32. // _debugAddSpace( debug, level );
  33. // debug << "GEONEAR";
  34. // MatchExpression::TagData* td = getTag();
  35. // if (NULL != td) {
  36. // debug << " ";
  37. // td->debugString(&debug);
  38. // }
  39. // debug << "\n";
  40. // }
  41. }
  42. /**
  43. *
  44. * This documentation was automatically generated. Please update when you touch this function.
  45. * @method equivalent
  46. * @param
  47. *
  48. */
  49. proto.equivalent = function equivalent( /* const MatchExpression* other */ ){
  50. // File: expression_geo.cpp lines: 101-112
  51. // bool GeoNearMatchExpression::equivalent( const MatchExpression* other ) const {
  52. // if ( matchType() != other->matchType() )
  53. // return false;
  54. //
  55. // const GeoNearMatchExpression* realOther = static_cast<const GeoNearMatchExpression*>(other);
  56. //
  57. // if ( path() != realOther->path() )
  58. // return false;
  59. //
  60. // // TODO:
  61. // // return _query == realOther->_query;
  62. // return false;
  63. // }
  64. }
  65. /**
  66. *
  67. * This documentation was automatically generated. Please update when you touch this function.
  68. * @method getData
  69. * @param
  70. *
  71. */
  72. proto.getData = function getData( /* */ ){
  73. // File: expression_geo.h lines: 64-63
  74. // const NearQuery& getData() const { return _query; }
  75. }
  76. /**
  77. *
  78. * This documentation was automatically generated. Please update when you touch this function.
  79. * @method init
  80. * @param
  81. *
  82. */
  83. proto.init = function init( /* const StringData& path, const NearQuery& query */ ){
  84. // File: expression_geo.cpp lines: 79-81
  85. // Status GeoNearMatchExpression::init( const StringData& path, const NearQuery& query ) {
  86. // _query = query;
  87. // return initPath( path );
  88. // }
  89. }
  90. /**
  91. *
  92. * This documentation was automatically generated. Please update when you touch this function.
  93. * @method matchesSingleElement
  94. * @param
  95. *
  96. */
  97. proto.matchesSingleElement = function matchesSingleElement( /* const BSONElement& e */ ){
  98. // File: expression_geo.cpp lines: 84-87
  99. // bool GeoNearMatchExpression::matchesSingleElement( const BSONElement& e ) const {
  100. // // This shouldn't be called.
  101. // verify(0);
  102. // return false;
  103. // }
  104. }
  105. /**
  106. *
  107. * This documentation was automatically generated. Please update when you touch this function.
  108. * @method shallowClone
  109. * @param
  110. *
  111. */
  112. proto.shallowClone = function shallowClone( /* */ ){
  113. // File: expression_geo.cpp lines: 115-118
  114. // LeafMatchExpression* GeoNearMatchExpression::shallowClone() const {
  115. // GeoNearMatchExpression* next = new GeoNearMatchExpression();
  116. // next->init( path(), _query );
  117. // return next;
  118. // }
  119. }
  120. /**
  121. *
  122. * This documentation was automatically generated. Please update when you touch this function.
  123. * @method ~GeoNearMatchExpression
  124. * @param
  125. *
  126. */
  127. proto.~GeoNearMatchExpression = function ~GeoNearMatchExpression( /* */ ){
  128. // File: expression_geo.h lines: 51-50
  129. // virtual ~GeoNearMatchExpression(){}
  130. }