XGCa
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
XGC_core
cpp
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
Source::is_triggered
bool is_triggered(int step)
Definition:
source.hpp:12
Source
Definition:
source.hpp:7
StepTrigger::is_triggered
bool is_triggered(int step) const
Definition:
step_trigger.hpp:25
Source::step_trigger
StepTrigger step_trigger
Definition:
source.hpp:8
step_trigger.hpp
StepTrigger
Definition:
step_trigger.hpp:4
Generated by
1.8.5