XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
source.hpp
Go to the documentation of this file.
1 #ifndef SOURCE_HPP
2 #define SOURCE_HPP
3 
4 #include "step_trigger.hpp"
5 
6 // Parent source: This class contains things member variables and methods that every source is expected to have
7 struct Source{
8  StepTrigger step_trigger; // Triggers when it is time to call this source
9 
10  /* Returns whether this source should be executed on this step
11  * */
12  bool is_triggered(int step){
13  return step_trigger.is_triggered(step);
14  }
15 };
16 
17 #endif
bool is_triggered(int step)
Definition: source.hpp:12
Definition: source.hpp:7
bool is_triggered(int step)
Definition: step_trigger.hpp:23
StepTrigger step_trigger
Definition: source.hpp:8
Definition: step_trigger.hpp:4