pipeline :: PipeAlternate :: _odd
pipeline :: PipeAlternate :: _odd_item
pipeline :: PipeAlternate :: defaultinit
pipeline :: PipeAlternate :: odd
pipeline :: PipeAlternate :: odd=
pipeline :: PipeAlternate :: odd_item
pipeline :: PipeAlternate :: odd_item=
pipeline $ PipeAlternate :: SELF
Type of this instance, automatically specialized in every classpipeline :: PipeAlternate :: _odd
pipeline :: PipeAlternate :: _odd_item
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
pipeline :: PipeAlternate :: defaultinit
core :: Iterator :: defaultinit
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.
core :: Object :: native_class_name
The class name of the object in CString format.pipeline :: PipeAlternate :: odd
pipeline :: PipeAlternate :: odd=
pipeline :: PipeAlternate :: odd_item
pipeline :: PipeAlternate :: odd_item=
Iterator
whose elements are sorted by the function
core :: Object :: output_class_name
Display class name on stdout (debug only).
private class PipeAlternate[E]
super Iterator[E]
var source: Iterator[E]
var odd_item: E
var odd = true
redef fun is_ok do return source.is_ok
redef fun item
do
if odd then
return source.item
else
return odd_item
end
end
redef fun next
do
if odd then
source.next
end
odd = not odd
end
end
lib/pipeline/pipeline.nit:395,1--420,3