GeoMatchExpression.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. "use strict"
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var GeoMatchExpression = module.exports = function (){
  4. }, klass = GeoMatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  5. // File: expression_geo.h lines: 45-45
  6. // GeoQuery _query;
  7. proto._query = undefined;
  8. // File: expression_geo.h lines: 45-45
  9. // GeoQuery _query;
  10. proto._query = undefined;
  11. /**
  12. *
  13. * This documentation was automatically generated. Please update when you touch this function.
  14. * @method GeoMatchExpression
  15. * @param
  16. *
  17. */
  18. proto.GeoMatchExpression = function GeoMatchExpression( /* GEO */ ){
  19. // File: expression_geo.h lines: 31-30
  20. // GeoMatchExpression() : LeafMatchExpression( GEO ){}
  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: 44-52
  31. // void GeoMatchExpression::debugString( StringBuilder& debug, int level ) const {
  32. // _debugAddSpace( debug, level );
  33. // debug << "GEO";
  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: 55-66
  51. // bool GeoMatchExpression::equivalent( const MatchExpression* other ) const {
  52. // if ( matchType() != other->matchType() )
  53. // return false;
  54. //
  55. // const GeoMatchExpression* realOther = static_cast<const GeoMatchExpression*>( 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 init
  69. * @param
  70. *
  71. */
  72. proto.init = function init( /* const StringData& path, const GeoQuery& query */ ){
  73. // File: expression_geo.cpp lines: 28-30
  74. // Status GeoMatchExpression::init( const StringData& path, const GeoQuery& query ) {
  75. // _query = query;
  76. // return initPath( path );
  77. // }
  78. }
  79. /**
  80. *
  81. * This documentation was automatically generated. Please update when you touch this function.
  82. * @method matchesSingleElement
  83. * @param
  84. *
  85. */
  86. proto.matchesSingleElement = function matchesSingleElement( /* const BSONElement& e */ ){
  87. // File: expression_geo.cpp lines: 33-41
  88. // bool GeoMatchExpression::matchesSingleElement( const BSONElement& e ) const {
  89. // if ( !e.isABSONObj())
  90. // return false;
  91. //
  92. // GeometryContainer container;
  93. // if ( !container.parseFrom( e.Obj() ) )
  94. // return false;
  95. //
  96. // return _query.satisfiesPredicate( container );
  97. // }
  98. }
  99. /**
  100. *
  101. * This documentation was automatically generated. Please update when you touch this function.
  102. * @method shallowClone
  103. * @param
  104. *
  105. */
  106. proto.shallowClone = function shallowClone( /* */ ){
  107. // File: expression_geo.cpp lines: 69-72
  108. // LeafMatchExpression* GeoMatchExpression::shallowClone() const {
  109. // GeoMatchExpression* next = new GeoMatchExpression();
  110. // next->init( path(), _query );
  111. // return next;
  112. // }
  113. }
  114. /**
  115. *
  116. * This documentation was automatically generated. Please update when you touch this function.
  117. * @method ~GeoMatchExpression
  118. * @param
  119. *
  120. */
  121. proto.~GeoMatchExpression = function ~GeoMatchExpression( /* */ ){
  122. // File: expression_geo.h lines: 32-31
  123. // virtual ~GeoMatchExpression(){}
  124. }