Public Member Functions | List of all members
ConstantTimeInterval Class Reference

Triggers at constant time intervals. More...

#include <trigger.hpp>

Inheritance diagram for ConstantTimeInterval:
Inheritance graph
[legend]
Collaboration diagram for ConstantTimeInterval:
Collaboration graph
[legend]

Public Member Functions

 ConstantTimeInterval (double dt, double t_next=0)
 Class constructor. More...
 
bool operator() (const hdsim &sim)
 Returns true if event happened. More...
 
- Public Member Functions inherited from Trigger
virtual ~Trigger (void)
 Class destructor.
 

Detailed Description

Triggers at constant time intervals.

Definition at line 27 of file trigger.hpp.

Constructor & Destructor Documentation

◆ ConstantTimeInterval()

ConstantTimeInterval::ConstantTimeInterval ( double  dt,
double  t_next = 0 
)

Class constructor.

Parameters
dtTime step
t_nextFirst trigger time

Definition at line 5 of file trigger.cpp.

Member Function Documentation

◆ operator()()

bool ConstantTimeInterval::operator() ( const hdsim sim)
virtual

Returns true if event happened.

Parameters
simReference to the simulation
Returns
True if event happened, false otherwise

Implements Trigger.

Definition at line 8 of file trigger.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: