more_collections :: UnrolledIterator :: _index_in_node
Index within the currentnode
more_collections :: UnrolledIterator :: index=
Index of the currentitem
more_collections :: UnrolledIterator :: index_in_node
Index within the currentnode
more_collections :: UnrolledIterator :: index_in_node=
Index within the currentnode
more_collections $ UnrolledIterator :: SELF
Type of this instance, automatically specialized in every classmore_collections $ UnrolledIterator :: core_serialize_to
Actual serialization ofself
to serializer
more_collections $ UnrolledIterator :: from_deserializer
Create an instance of this class from thedeserializer
more_collections :: UnrolledIterator :: _index_in_node
Index within the currentnode
serialization :: Serializable :: accept_inspect_serializer_core
serialization :: Serializable :: accept_json_serializer
Refinable service to customize the serialization of this class to JSONserialization :: Serializable :: accept_msgpack_attribute_counter
Hook to customize the behavior of theAttributeCounter
serialization :: Serializable :: accept_msgpack_serializer
Hook to customize the serialization of this class to MessagePackserialization :: Serializable :: add_to_bundle
Called by[]=
to dynamically choose the appropriate method according
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
core :: IndexedIterator :: defaultinit
core :: Iterator :: defaultinit
core :: Object :: defaultinit
serialization :: Serializable :: from_deserializer
Create an instance of this class from thedeserializer
more_collections :: UnrolledIterator :: index=
Index of the currentitem
more_collections :: UnrolledIterator :: index_in_node
Index within the currentnode
more_collections :: UnrolledIterator :: index_in_node=
Index within the currentnode
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.
serialization :: Serializable :: msgpack_extra_array_items
Hook to request a larger than usual metadata arraycore :: 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).serialization :: Serializable :: serialize_msgpack
Serializeself
to MessagePack bytes
serialization :: Serializable :: serialize_to
Serializeself
to serializer
serialization :: Serializable :: serialize_to_json
Serializeself
to JSON
serialization :: Serializable :: serialize_to_or_delay
Accept references or force direct serialization (usingserialize_to
)
serialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
Serializer::serialize
private class UnrolledIterator[E]
super IndexedIterator[E]
var list: UnrolledList[E]
var node: nullable UnrolledNode[E] = list.head_node is lazy
# Index of the current `item`
redef var index = 0
# Index within the current `node`
var index_in_node: Int = node.head_index is lazy
redef fun item do return node.items[index_in_node]
redef fun is_ok do return index < list.length
redef fun next
do
index += 1
index_in_node += 1
if index_in_node >= node.tail_index then
node = node.next
if node != null then index_in_node = node.head_index
end
end
end
lib/more_collections/more_collections.nit:651,1--678,3