![]() |
FIMS
v0.9.3
|
FIMS struct that tracks object memory for leak detection. More...
#include <model_object.hpp>
Public Member Functions | |
| void | register_self (const uint32_t id) |
| Registers a FIMSObject instance with the memory tracker. | |
Static Public Attributes | |
| static int | total_active_objects = 0 |
| Total number of active FIMSObject instances currently in memory. | |
FIMS struct that tracks object memory for leak detection.
Registers a FIMSObject instance with the memory tracker.
Should be called from the constructor of each concrete FIMS class after setting its id, so that the type name and id are both available. Inserts a key of the form "TypeName [id=X]" into active_objects and increments total_active_objects.
| id | The unique FIMS object id assigned by the derived class. |