template<typename T, typename A = None>
class simics::RegisterClassWithSimics< T, A >
Utility class for automatic registration of C++ classes with Simics.
This class template provides a convenient way to register C++ classes with the Simics simulation framework. It automatically calls the appropriate make_class function during static initialization, ensuring that the class is properly registered when the module is loaded.
- Template Parameters
-
| T | The C++ class to be registered with Simics. |
| A | (optional) Additional argument type for the class constructor. |
Usage example:
"my_class", "Short description", "Detailed description");
Utility class for automatic registration of C++ classes with Simics.
Definition: conf-class.h:274
- Note
- Using a static global instance of this class may trigger a Coverity warning such as
global_init_order or ctor_dtor_global_ordering due to potential global initialization order issues. As there are no dependencies on the initialization order for registration object, you can safely suppress this warning by adding the following comment immediately before the static variable: // coverity[ctor_dtor_global_ordering]