SimpleArrayElementIterator.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. "use strict"
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var SimpleArrayElementIterator = module.exports = function (){
  4. }, klass = SimpleArrayElementIterator, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  5. // File: path.h lines: 101-101
  6. // BSONObjIterator _iterator;
  7. proto._iterator = undefined;
  8. // File: path.h lines: 100-100
  9. // bool _returnArrayLast;
  10. proto._returnArrayLast = undefined;
  11. // File: path.h lines: 99-99
  12. // BSONElement _theArray;
  13. proto._theArray = undefined;
  14. // File: path.h lines: 101-101
  15. // BSONObjIterator _iterator;
  16. proto._iterator = undefined;
  17. // File: path.h lines: 100-100
  18. // bool _returnArrayLast;
  19. proto._returnArrayLast = undefined;
  20. // File: path.h lines: 99-99
  21. // BSONElement _theArray;
  22. proto._theArray = undefined;
  23. /**
  24. *
  25. * This documentation was automatically generated. Please update when you touch this function.
  26. * @method SimpleArrayElementIterator
  27. * @param
  28. *
  29. */
  30. proto.SimpleArrayElementIterator = function SimpleArrayElementIterator( /* const BSONElement& theArray, bool returnArrayLast */ ){
  31. // File: path.cpp lines: 52-54
  32. // SimpleArrayElementIterator::SimpleArrayElementIterator( const BSONElement& theArray, bool returnArrayLast )
  33. // : _theArray( theArray ), _returnArrayLast( returnArrayLast ), _iterator( theArray.Obj() ) {
  34. //
  35. // }
  36. }
  37. /**
  38. *
  39. * This documentation was automatically generated. Please update when you touch this function.
  40. * @method more
  41. * @param
  42. *
  43. */
  44. proto.more = function more( /* */ ){
  45. // File: path.cpp lines: 57-58
  46. // bool SimpleArrayElementIterator::more() {
  47. // return _iterator.more() || _returnArrayLast;
  48. // }
  49. }
  50. /**
  51. *
  52. * This documentation was automatically generated. Please update when you touch this function.
  53. * @method next
  54. * @param
  55. *
  56. */
  57. proto.next = function next( /* */ ){
  58. // File: path.cpp lines: 61-70
  59. // ElementIterator::Context SimpleArrayElementIterator::next() {
  60. // if ( _iterator.more() ) {
  61. // Context e;
  62. // e.reset( _iterator.next(), BSONElement(), false );
  63. // return e;
  64. // }
  65. // _returnArrayLast = false;
  66. // Context e;
  67. // e.reset( _theArray, BSONElement(), true );
  68. // return e;
  69. // }
  70. }