thor::Resources::CentralOwner Struct Reference

Centralized ownership policy. More...

Detailed Description

Centralized ownership policy.

The ResourceHolder object is in charge of ownership: it stores all resources and hands out references to them. Upon destruction, ResourceHolder releases all resources. It's the users responsibility to keep resources alive as long as they are in use.

This is the default ownership policy. It is the simplest and most efficient variant and will suffice for most cases. Only deviate from it when you have specific requirements.

With this policy, the user accesses resources through R& or const R&.

The documentation for this struct was generated from the following file: