![]() |
Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
|
#include <units.h>
Public Member Functions | |
| ~BaseUnit ()=default | |
Static Public Member Functions | |
| static void | InitializeStaticVariables (unsigned long n) |
| Initialize the number of instances for the derived class that must be known when simulation is started. | |
| static void | VacuumInstancesAndStaticVariables () |
| Clean up all instances and static variables of the derived class. | |
This class represents the base class for all kind of units, i.e., Substation, ControlUnit and MeasurementUnit. This template class is using the so-called Curiously Recurring Template Pattern (CRTP) technique.
| Derived | The derived unit class. |
Even though not required, this default destructor is added for safety reasons.
|
inlinestatic |
Initialize the number of instances for the derived class that must be known when simulation is started.
This method forwards the call to Derived::InitializeStaticVariables().
| n | The number of units to initialize (e.g., number of substations or control units). |
|
inlinestatic |
Clean up all instances and static variables of the derived class.
This method forwards the call to Derived::VacuumInstancesAndStaticVariables(). Each derived class must implement this function, which should remove all dynamically created instances and reset static variables (including public_to_internal_id if appropriate).