is example
.nitc :: MExample :: _example_for
MEntities this example is fornitc :: MExample :: defaultinit
nitc :: MExample :: example_for
MEntities this example is fornitc :: MExample :: example_for=
MEntities this example is fornitc :: MExample :: _example_for
MEntities this example is forcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: MExample :: defaultinit
core :: Object :: defaultinit
nitc :: MExample :: example_for
MEntities this example is fornitc :: MExample :: example_for=
MEntities this example is forcore :: 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.core :: Object :: output_class_name
Display class name on stdout (debug only).
# An example from a MEntity flagged with `is example`.
class MExample
redef init do
super
mentity.mexample = self
end
# MEntity containing this example
var mentity: MEntity
# MEntities this example is for
#
# For each entity we provide a weight so examples can be ranked.
var example_for = new ArrayMap[MEntity, Int]
redef fun to_s do return mentity.full_name
end
src/model/model_examples.nit:27,1--44,3