9#ifndef FIMS_COMMON_MODEL_OBJECT_HPP
10#define FIMS_COMMON_MODEL_OBJECT_HPP
17namespace fims_model_object {
36 std::string key =
" [id=" + std::to_string(
id) +
"]";
42 if (!tracker_key_.empty()) {
48 std::string tracker_key_;
54template <
typename Type>
81 if (actual != expected) {
Establishes the FIMS Vector class.
FIMS struct that tracks object memory for leak detection.
Definition model_object.hpp:22
static int total_active_objects
Total number of active FIMSObject instances currently in memory.
Definition model_object.hpp:24
void register_self(const uint32_t id)
Registers a FIMSObject instance with the memory tracker.
Definition model_object.hpp:35
FIMSObject struct that defines member types and returns the unique id.
Definition model_object.hpp:55
uint32_t id
Definition model_object.hpp:56
uint32_t GetId() const
Getter that returns the unique id for parameters in the model.
Definition model_object.hpp:70
bool CheckDimensions(size_t actual, size_t expected)
Check the dimensions of an object.
Definition model_object.hpp:80
std::vector< Type * > random_effects_parameters
Definition model_object.hpp:59
std::vector< Type * > parameters
Definition model_object.hpp:57
std::vector< Type * > fixed_effects_parameters
Definition model_object.hpp:61