IMP.bff
Loading...
Searching...
No Matches
DecayRange.h
Go to the documentation of this file.
1
13#ifndef IMPBFF_DECAYRANGE_H
14#define IMPBFF_DECAYRANGE_H
15
16#include <IMP/bff/bff_config.h>
17#include <IMP/bff/DecayCurve.h>
18#include <vector>
19
20IMPBFF_BEGIN_NAMESPACE
21
30class IMPBFFEXPORT DecayRange {
31private:
32 size_t _start = 0;
33 size_t _stop = -1;
34
35public:
40 void set_start(int v);
41
47 size_t get_start(DecayCurve* d = nullptr) const;
48
53 void set_stop(int v);
54
60 size_t get_stop(DecayCurve* d = nullptr) const;
61
66 void set_range(std::vector<int> v);
67
73 std::vector<int> get_range(DecayCurve* d = nullptr);
74
80 void set(int start = 0, int stop = -1);
81
87 DecayRange(int start, int stop);
88
92 virtual ~DecayRange() = default;
93};
94
95IMPBFF_END_NAMESPACE
96
97#endif // IMPBFF_DECAYRANGE_H
Class for fluorescence decay curves.
Definition DecayCurve.h:38
Represents an inspected range of fluorescence decay.
Definition DecayRange.h:30
DecayRange(int start, int stop)
Constructor.
void set(int start=0, int stop=-1)
Set the start and stop indices of the decay range.
void set_range(std::vector< int > v)
Set the range using a vector of indices.
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_start(int v)
Set the start index of the decay range.
std::vector< int > get_range(DecayCurve *d=nullptr)
Get the range as a vector of indices.
virtual ~DecayRange()=default
Destructor.
size_t get_start(DecayCurve *d=nullptr) const
Get the start index of the decay range.