pipeline :: PipeUniq :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
pipeline :: PipeUniq :: defaultinit
core :: Object :: 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.Iterator
whose elements are sorted by the function
core :: Object :: output_class_name
Display class name on stdout (debug only).
private class PipeUniq[E]
super Iterator[E]
var source: Iterator[E]
var seen = new HashSet[Object] # FIXME HashSet[E]
redef fun is_ok do return source.is_ok
redef fun item do return source.item
redef fun next
do
self.seen.add(self.item.as(Object))
source.next
while source.is_ok and self.seen.has(source.item.as(Object)) do
source.next
end
end
end
lib/pipeline/pipeline.nit:334,1--353,3