Просмотр исходного кода

ref #3253: Fill out Context.js

Brennan Chesley 12 лет назад
Родитель
Сommit
d5f7980355
1 измененных файлов с 16 добавлено и 38 удалено
  1. 16 38
      lib/pipeline/matcher/Context.js

+ 16 - 38
lib/pipeline/matcher/Context.js

@@ -1,4 +1,4 @@
-"use strict"
+"use strict";
 
 
 
@@ -51,34 +51,24 @@ proto._outerArray = undefined;
  * 
  * This documentation was automatically generated. Please update when you touch this function.
  * @method arrayOffset
- * @param
  *
  */
-proto.arrayOffset = function arrayOffset( /*  */ ){
+proto.arrayOffset = function arrayOffset( ){
 // File: path.h lines: 57-56
-//             BSONElement arrayOffset() const { return _arrayOffset; }
-
-
-
-
-}
+	return this._arrayOffset;
+};
 
 
 /**
  * 
  * This documentation was automatically generated. Please update when you touch this function.
  * @method element
- * @param
  *
  */
-proto.element = function element( /*  */ ){
+proto.element = function element( ){
 // File: path.h lines: 56-55
-//             BSONElement element() const { return _element; }
-
-
-
-
-}
+	return this._element;
+};
 
 
 /**
@@ -88,14 +78,10 @@ proto.element = function element( /*  */ ){
  * @param
  *
  */
-proto.outerArray = function outerArray( /*  */ ){
+proto.outerArray = function outerArray( ){
 // File: path.h lines: 58-57
-//             bool outerArray() const { return _outerArray; }
-
-
-
-
-}
+	return this._outerArray;
+};
 
 
 /**
@@ -105,16 +91,10 @@ proto.outerArray = function outerArray( /*  */ ){
  * @param
  *
  */
-proto.reset = function reset( /*  BSONElement element,$/;" */ ){
-
+proto.reset = function reset( ){
 // File: path.cpp lines: 37-38
-//     void ElementIterator::Context::reset() {
-//         _element = BSONElement();
-//     }
-
-
-
-}
+	this._element = new BSONElement();
+};
 
 
 /**
@@ -124,11 +104,9 @@ proto.reset = function reset( /*  BSONElement element,$/;" */ ){
  * @param
  *
  */
-proto.setArrayOffset = function setArrayOffset( /*  BSONElement e  */ ){
+proto.setArrayOffset = function setArrayOffset( e ){
 // File: path.h lines: 54-53
-//             void setArrayOffset( BSONElement e ) { _arrayOffset = e; }
-
-
+	this._arrayOffset = e;
+};
 
 
-}