It wraps up the wire protocol negotation required to initiate a query and retreive an unknown number of documents.
mongodb :: MongoCursor :: defaultinit
mongodb :: MongoCursor :: is_ok=
mongodb $ MongoCursor :: SELF
Type of this instance, automatically specialized in every classmongodb $ MongoCursor :: finalize_once
Real finalization method ofFinalizableOnce, will be called only once
			mongodb $ MongoCursor :: init
core :: Object :: class_factory
Implementation used byget_class to create the specific class.
			core :: FinalizableOnce :: defaultinit
mongodb :: MongoCursor :: defaultinit
core :: Finalizable :: defaultinit
core :: Object :: defaultinit
core :: Iterator :: defaultinit
core :: Finalizable :: finalize
Liberate any resources held byself before the memory holding self is freed
			core :: FinalizableOnce :: finalize_once
Real finalization method ofFinalizableOnce, will be called only once
			core :: FinalizableOnce :: finalized
Hasself been finalized? (either by the GC or an explicit call to finalize)
			core :: FinalizableOnce :: finalized=
Hasself been finalized? (either by the GC or an explicit call to finalize)
			mongodb :: MongoCursor :: is_ok=
core :: Object :: is_same_instance
Return true ifself and other are the same instance (i.e. same identity).
			core :: Object :: is_same_serialized
Isself the same as other in a serialization context?
			core :: Object :: is_same_type
Return true ifself and other have the same dynamic type.
			Iterator whose elements are sorted by the function
			core :: Object :: output_class_name
Display class name on stdout (debug only).
# A MongoDB query cursor.
#
# It wraps up the wire protocol negotation required to initiate a query and
# retreive an unknown number of documents.
class MongoCursor
	super FinalizableOnce
	super Iterator[JsonObject]
	private var native: NativeMongoCursor
	init do next
	redef var is_ok = true
	redef fun next do is_ok = native.next
	redef fun item do
		return new JsonObject.from_bson(new BSON(native.current))
	end
	redef fun finalize_once do native.destroy
end
					lib/mongodb/mongodb.nit:708,1--729,3