|
OpenASIP 2.2
|
#include <FrequencySweep.hh>

Public Member Functions | |
| FrequencySweep (int startMHz, int endMHz, int stepMHz) | |
| virtual | ~FrequencySweep () |
| int | nextFrequency () |
Private Attributes | |
| int | nextFrequency_ |
| Next frequency to be returned. | |
| bool | hasNext_ |
| Flag indicating is there next frequency to return. | |
| int | endMHz_ |
| End frequency. | |
| int | stepMHz_ |
| Step frequency. | |
Sweeps through the frequencies from lowest frequency towards the highest frequency and returns all step frequencies including the start and end frequency.
FrequencySweep takes start and and frequencies and a step frequency that tells how big frequency steps are taken between the start and end point.
Definition at line 47 of file FrequencySweep.hh.
| FrequencySweep::FrequencySweep | ( | int | startMHz, |
| int | endMHz, | ||
| int | stepMHz | ||
| ) |
Constructor of the FrequencySweep.
| startMHz | Start frequency in MHz. |
| endMHz | End frequency in MHz. |
| stepMHz | Stepping frequency in MHz. |
| IllegalParameters | Throws if the frequencies are smaller than one. |
Definition at line 43 of file FrequencySweep.cc.
References __func__, and nextFrequency_.
|
virtual |
| int FrequencySweep::nextFrequency | ( | ) |
Returns the next frequency or zero if all steps have been returned and steps forward.
Definition at line 73 of file FrequencySweep.cc.
References endMHz_, hasNext_, nextFrequency_, and stepMHz_.
Referenced by FrequencySweepExplorer::explore().
|
private |
|
private |
Flag indicating is there next frequency to return.
Definition at line 57 of file FrequencySweep.hh.
Referenced by nextFrequency().
|
private |
Next frequency to be returned.
Definition at line 55 of file FrequencySweep.hh.
Referenced by FrequencySweep(), and nextFrequency().
|
private |