MatchExpression.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. "use strict"
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var MatchExpression = module.exports = function (){
  4. }, klass = MatchExpression, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  5. // File: expression.h lines: 172-172
  6. // MatchType _matchType;
  7. proto._matchType = undefined;
  8. // File: expression.h lines: 173-173
  9. // boost::scoped_ptr<TagData> _tagData;
  10. proto._tagData = undefined;
  11. // File: expression.h lines: 172-172
  12. // MatchType _matchType;
  13. proto._matchType = undefined;
  14. // File: expression.h lines: 173-173
  15. // boost::scoped_ptr<TagData> _tagData;
  16. proto._tagData = undefined;
  17. /**
  18. *
  19. * This documentation was automatically generated. Please update when you touch this function.
  20. * @method MatchExpression
  21. * @param
  22. *
  23. */
  24. proto.MatchExpression = function MatchExpression( /* MatchType type */ ){
  25. // File: expression.cpp lines: 28-28
  26. // MatchExpression::MatchExpression( MatchType type )
  27. // : _matchType( type ) { }
  28. }
  29. /**
  30. *
  31. * This documentation was automatically generated. Please update when you touch this function.
  32. * @method _debugAddSpace
  33. * @param
  34. *
  35. */
  36. proto._debugAddSpace = function _debugAddSpace( /* StringBuilder& debug, int level */ ){
  37. // File: expression.cpp lines: 37-39
  38. // void MatchExpression::_debugAddSpace( StringBuilder& debug, int level ) const {
  39. // for ( int i = 0; i < level; i++ )
  40. // debug << " ";
  41. // }
  42. }
  43. /**
  44. *
  45. * This documentation was automatically generated. Please update when you touch this function.
  46. * @method getChild
  47. * @param
  48. *
  49. */
  50. proto.getChild = function getChild( /* size_t i */ ){
  51. // File: expression.h lines: 78-77
  52. // virtual const MatchExpression* getChild( size_t i ) const { return NULL; }
  53. }
  54. /**
  55. *
  56. * This documentation was automatically generated. Please update when you touch this function.
  57. * @method getTag
  58. * @param
  59. *
  60. */
  61. proto.getTag = function getTag( /* */ ){
  62. // File: expression.h lines: 159-158
  63. // TagData* getTag() const { return _tagData.get(); }
  64. }
  65. /**
  66. *
  67. * This documentation was automatically generated. Please update when you touch this function.
  68. * @method isArray
  69. * @param
  70. *
  71. */
  72. proto.isArray = function isArray( /* */ ){
  73. // File: expression.h lines: 111-113
  74. // bool isArray() const {
  75. // return SIZE == _matchType || ALL == _matchType || ELEM_MATCH_VALUE == _matchType
  76. // || ELEM_MATCH_OBJECT == _matchType;
  77. // }
  78. }
  79. /**
  80. *
  81. * This documentation was automatically generated. Please update when you touch this function.
  82. * @method isLeaf
  83. * @param
  84. *
  85. */
  86. proto.isLeaf = function isLeaf( /* */ ){
  87. // File: expression.h lines: 124-125
  88. // bool isLeaf() const {
  89. // return !isArray() && !isLogical();
  90. // }
  91. }
  92. /**
  93. *
  94. * This documentation was automatically generated. Please update when you touch this function.
  95. * @method isLogical
  96. * @param
  97. *
  98. */
  99. proto.isLogical = function isLogical( /* */ ){
  100. // File: expression.h lines: 100-101
  101. // bool isLogical() const {
  102. // return AND == _matchType || OR == _matchType || NOT == _matchType || NOR == _matchType;
  103. // }
  104. }
  105. /**
  106. *
  107. * This documentation was automatically generated. Please update when you touch this function.
  108. * @method matchType
  109. * @param
  110. *
  111. */
  112. proto.matchType = function matchType( /* */ ){
  113. // File: expression.h lines: 67-66
  114. // MatchType matchType() const { return _matchType; }
  115. }
  116. /**
  117. *
  118. * This documentation was automatically generated. Please update when you touch this function.
  119. * @method matchesBSON
  120. * @param
  121. *
  122. */
  123. proto.matchesBSON = function matchesBSON( /* const BSONObj& doc, MatchDetails* details */ ){
  124. // File: expression.cpp lines: 42-44
  125. // bool MatchExpression::matchesBSON( const BSONObj& doc, MatchDetails* details ) const {
  126. // BSONMatchableDocument mydoc( doc );
  127. // return matches( &mydoc, details );
  128. // }
  129. }
  130. /**
  131. *
  132. * This documentation was automatically generated. Please update when you touch this function.
  133. * @method numChildren
  134. * @param
  135. *
  136. */
  137. proto.numChildren = function numChildren( /* */ ){
  138. // File: expression.h lines: 73-72
  139. // virtual size_t numChildren() const { return 0; }
  140. }
  141. /**
  142. *
  143. * This documentation was automatically generated. Please update when you touch this function.
  144. * @method path
  145. * @param
  146. *
  147. */
  148. proto.path = function path( /* */ ){
  149. // File: expression.h lines: 83-82
  150. // virtual const StringData path() const { return StringData(); }
  151. }
  152. /**
  153. *
  154. * This documentation was automatically generated. Please update when you touch this function.
  155. * @method setTag
  156. * @param
  157. *
  158. */
  159. proto.setTag = function setTag( /* TagData* data */ ){
  160. // File: expression.h lines: 158-157
  161. // void setTag(TagData* data) { _tagData.reset(data); }
  162. }
  163. /**
  164. *
  165. * This documentation was automatically generated. Please update when you touch this function.
  166. * @method toString
  167. * @param
  168. *
  169. */
  170. proto.toString = function toString( /* */ ){
  171. // File: expression.cpp lines: 31-34
  172. // string MatchExpression::toString() const {
  173. // StringBuilder buf;
  174. // debugString( buf, 0 );
  175. // return buf.str();
  176. // }
  177. }
  178. /**
  179. *
  180. * This documentation was automatically generated. Please update when you touch this function.
  181. * @method ~MatchExpression
  182. * @param
  183. *
  184. */
  185. proto.~MatchExpression = function ~MatchExpression( /* */ ){
  186. // File: expression.h lines: 58-57
  187. // virtual ~MatchExpression(){}
  188. }