nitc :: ForeignCallbackSet :: _all_cached
Utility function, must be called only when all other maps are fillednitc :: ForeignCallbackSet :: _callbacks
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: _casts
set of imported casts and as, cached to avoid repetitionsnitc :: ForeignCallbackSet :: _supers
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: all
nitc :: ForeignCallbackSet :: all_cached
Utility function, must be called only when all other maps are fillednitc :: ForeignCallbackSet :: all_cached=
Utility function, must be called only when all other maps are fillednitc :: ForeignCallbackSet :: callbacks
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: callbacks=
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: casts
set of imported casts and as, cached to avoid repetitionsnitc :: ForeignCallbackSet :: casts=
set of imported casts and as, cached to avoid repetitionsnitc :: ForeignCallbackSet :: join
Integrate content from theother
set into this one
nitc :: ForeignCallbackSet :: supers
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: supers=
set of imported functions, cached to avoid repetitionsnitc $ ForeignCallbackSet :: SELF
Type of this instance, automatically specialized in every classnitc :: ForeignCallbackSet :: _all_cached
Utility function, must be called only when all other maps are fillednitc :: ForeignCallbackSet :: _callbacks
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: _casts
set of imported casts and as, cached to avoid repetitionsnitc :: ForeignCallbackSet :: _supers
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: all
nitc :: ForeignCallbackSet :: all_cached
Utility function, must be called only when all other maps are fillednitc :: ForeignCallbackSet :: all_cached=
Utility function, must be called only when all other maps are fillednitc :: ForeignCallbackSet :: callbacks
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: callbacks=
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: casts
set of imported casts and as, cached to avoid repetitionsnitc :: ForeignCallbackSet :: casts=
set of imported casts and as, cached to avoid repetitionscore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: 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.
nitc :: ForeignCallbackSet :: join
Integrate content from theother
set into this one
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).nitc :: ForeignCallbackSet :: supers
set of imported functions, cached to avoid repetitionsnitc :: ForeignCallbackSet :: supers=
set of imported functions, cached to avoid repetitions
# Provides a better API but mainly the same content as AExternCalls
class ForeignCallbackSet
# set of imported functions, cached to avoid repetitions
var callbacks: Set[ MExplicitCall ] = new HashSet[ MExplicitCall ]
# set of imported functions, cached to avoid repetitions
var supers: Set[ MExplicitSuper ] = new HashSet[ MExplicitSuper ]
# set of relevant types, cached to avoid repetitions
var types: Set[ MType ] = new HashSet[ MType ]
# set of imported casts and as, cached to avoid repetitions
var casts: Set[ MExplicitCast ] = new HashSet[ MExplicitCast ]
# Utility function, must be called only when all other maps are filled
private var all_cached: nullable Set[NitniCallback] = null
fun all: Set[NitniCallback]
do
var cached = all_cached
if cached != null then return cached
var set = new HashSet[NitniCallback]
set.add_all(callbacks)
set.add_all(supers)
set.add_all(types)
set.add_all(casts)
self.all_cached = set
return set
end
# Integrate content from the `other` set into this one
fun join(other: ForeignCallbackSet)
do
callbacks.add_all( other.callbacks )
supers.add_all( other.supers )
types.add_all( other.types )
casts.add_all( other.casts )
end
end
src/nitni/nitni_callbacks.nit:45,1--84,3