IMP.bff
|
Represents an inspected range of fluorescence decay. More...
#include <DecayRange.h>
Public Member Functions | |
void | set_start (int v) |
Set the start index of the decay range. | |
size_t | get_start (DecayCurve *d=nullptr) const |
Get the start index of the decay range. | |
void | set_stop (int v) |
Set the stop index of the decay range. | |
size_t | get_stop (DecayCurve *d=nullptr) const |
Get the stop index of the decay range. | |
void | set_range (std::vector< int > v) |
Set the range using a vector of indices. | |
std::vector< int > | get_range (DecayCurve *d=nullptr) |
Get the range as a vector of indices. | |
void | set (int start=0, int stop=-1) |
Set the start and stop indices of the decay range. | |
DecayRange (int start, int stop) | |
Constructor. | |
virtual | ~DecayRange ()=default |
Destructor. | |
Represents an inspected range of fluorescence decay.
The DecayRange class represents an inspected range of fluorescence decay. It allows setting and retrieving the start and stop indices of the range, as well as setting the range using a vector of indices.
DecayRange::DecayRange | ( | int | start, |
int | stop | ||
) |
Constructor.
start | The start index of the decay range |
stop | The stop index of the decay range |
|
virtualdefault |
Destructor.
std::vector< int > DecayRange::get_range | ( | DecayCurve * | d = nullptr | ) |
Get the range as a vector of indices.
d | The DecayCurve object (optional) |
size_t DecayRange::get_start | ( | DecayCurve * | d = nullptr | ) | const |
Get the start index of the decay range.
d | The DecayCurve object (optional) |
size_t DecayRange::get_stop | ( | DecayCurve * | d = nullptr | ) | const |
Get the stop index of the decay range.
d | The DecayCurve object (optional) |
void DecayRange::set | ( | int | start = 0 , |
int | stop = -1 |
||
) |
Set the start and stop indices of the decay range.
start | The start index (default: 0) |
stop | The stop index (default: -1) |
void DecayRange::set_range | ( | std::vector< int > | v | ) |
Set the range using a vector of indices.
v | The vector of indices |
void DecayRange::set_start | ( | int | v | ) |
Set the start index of the decay range.
v | The start index |
void DecayRange::set_stop | ( | int | v | ) |
Set the stop index of the decay range.
v | The stop index |