Register a static initialization function. More...
Public Member Functions | |
Initializer (unsigned int order) | |
Register a static initialization function.
In C++, there is currently no way to guarantee the order into which the static initialization (variables) in various modules will be done.
The Initializer template class provide a way to perform a static initialization across multiple modules in an ordered fashion, thus solving potential dependency problems between initialisation.
|
inline |
Register a static initializer for the template type T
. Initializer is a object that must be kept in a static
variable in a compilation unit (i.e. a .cpp file).
The template type T
(a class) must provide a static function named initialize
, with exactly the following signature: void T::initialize()
.
Generated by doxygen 1.9.1 on Thu Aug 11 2022 | Return to top of page |
Hurricane VLSI Database | Copyright © 2000-2020 Bull S.A. All rights reserved |