template<typename Data, typename Dummy = int>
class ecl::lite::GlobalSlots< Data, Dummy >
This is the global slot interface.
You'll need to preconfigure the capacity for this slot interface. Note that the capacity corresponds to the number of global functions with the specified footprint (Data arg), not the total number of slottable global functions overall.
template<>
void f(const char* str) {
std::cout << "f() " << str << std::endl;
}
void g(const char* str) {
std::cout << "g() " << str << std::endl;
}
- Template Parameters
-
Data | : the footprint for the type of global functions to slot. |
Dummy | : dummy argument to enable capacity to be a const expr for array bounds |
Definition at line 191 of file managers.hpp.
template<typename Data , typename Dummy = int>
Number of slots currently stored.
This is used for two purposes, 1) for recall and 2) to increment since it holds a static variable internally. This is triggered by the boolean argument which has a default value that can be hidden when doing 1).
- Parameters
-
increment | : increment the storage value (called from addSlot) |
- Returns
- : number of slots currently stored.
Definition at line 218 of file managers.hpp.