Usefull to order the mentities by kind in this order: packages, groups, modules and classes, properties.
nitc :: MEntityComparator :: defaultinit
nitc $ MEntityComparator :: SELF
Type of this instance, automatically specialized in every classcore :: Comparator :: bubble_sort
Bubble-sortarray
between from
and to
indices
core :: Comparator :: build_heap
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: ScoreComparator :: defaultinit
nitc :: MEntityComparator :: defaultinit
core :: Object :: defaultinit
core :: Comparator :: defaultinit
core :: Comparator :: insertion_sort
Insertion-sortarray
between from
and to
indices
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 :: Comparator :: merge_sort
Merge-sortarray
between from
and to
indices
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Comparator :: quick_sort
Quick-sortarray
between from
and to
indices
# Compare two matches by their MEntity kind
#
# Usefull to order the mentities by kind in this order:
# packages, groups, modules and classes, properties.
class MEntityComparator
super ScoreComparator
# See `MEntity::compare_mentity`
redef fun compare(o1, o2) do
return o1.mentity.mentity_kind_rank <=> o2.mentity.mentity_kind_rank
end
end
src/model/model_index.nit:584,1--595,3