Copy constructor with automatic reference counting.
Destructor with automatic reference counting.
Postblit with automatic reference counting.
Verify if this is a valid Flyweight object
Get the Flyweight instance for object identified by id, constructing it if not loaded yet.
Manually increment reference.
Returns whether there are any Flyweight instances loaded.
Returns if Flyweight identified by id is loaded of not.
Verify if ID is a valid object ID
If Flyweight identified by id is loaded, manually unload it and reset reference count/loaded flag.
Manually unload all loaded instances and reset reference counts/loaded flags.
Manually decrement reference.
Object data
Instance type
Callable that receives ID as argument and returns T
Callable that receives ref T instance to unload it
Enum or string[] with known IDs
Flyweight options
Flyweight template.