activation.template.h 410 B

12345678910111213
  1. #ifndef AFUN_ACTIVATION_TEMPLATE_H
  2. #define AFUN_ACTIVATION_TEMPLATE_H
  3. #include "activation.h"
  4. namespace aFuncore {
  5. template<typename T>
  6. void Activation::forEach(Activation *activation, void (*func)(Activation *activation, Message *, T), T arg){
  7. for (NULL; activation != nullptr; activation = activation->prev)
  8. func(activation, arg);
  9. }
  10. }
  11. #endif //AFUN_ACTIVATION_TEMPLATE_H