
KiokuDB::TypeMap::Entry::MOP - A KiokuDB::TypeMap entry for objects with a metaclass.

KiokuDB::TypeMap->new(
entries => {
'My::Class' => KiokuDB::TypeMap::Entry::MOP->new(
intrinsic => 1,
),
},
);

This typemap entry handles collapsing and expanding of Moose based objects.
It supports anonymous classes with runtime roles, the KiokuDB::Role::ID role.
Code for immutable classes is cached and performs several orders of magnitude better, so make use of "make_immutable" in Moose::Meta::Class.

If true the object will be collapsed as part of its parent, without an ID.