IMP.bff
Loading...
Searching...
No Matches
DecayModifier.h
Go to the documentation of this file.
1
9#ifndef IMPBFF_DECAYMODIFIER_H
10#define IMPBFF_DECAYMODIFIER_H
11
12#include <IMP/bff/bff_config.h>
13#include <memory>
14#include <limits>
15#include <IMP/bff/DecayRange.h>
16#include <IMP/bff/DecayCurve.h>
17
18IMPBFF_BEGIN_NAMESPACE
19
29class IMPBFFEXPORT DecayModifier : public DecayRange {
30
31private:
32 bool _is_active = true;
33
34protected:
35 DecayCurve* data = nullptr;
36 DecayCurve* default_data = nullptr;
37
38public:
43 virtual void set_data(DecayCurve* v);
44
49 virtual DecayCurve* get_data();
50
55 bool is_active() const;
56
61 void set_active(bool v);
62
70 void set(DecayCurve* data, int start=0, int stop=-1, bool active = true);
71
77 void resize(size_t n, double v = 0.0);
78
83 virtual void add(DecayCurve* out) = 0;
84
92 DecayModifier(DecayCurve *data = nullptr,
93 int start = 0, int stop = -1, bool active = true);
94
99 delete default_data;
100 }
101};
102
103IMPBFF_END_NAMESPACE
104
105#endif // IMPBFF_DECAYMODIFIER_H
Class for fluorescence decay curves.
Definition DecayCurve.h:38
A decorator that modifies a DecayCurve within a specified range.
Definition DecayModifier.h:29
void set(DecayCurve *data, int start=0, int stop=-1, bool active=true)
void resize(size_t n, double v=0.0)
virtual DecayCurve * get_data()
DecayModifier(DecayCurve *data=nullptr, int start=0, int stop=-1, bool active=true)
bool is_active() const
virtual void add(DecayCurve *out)=0
virtual void set_data(DecayCurve *v)
void set_active(bool v)
~DecayModifier()
Definition DecayModifier.h:98
Represents an inspected range of fluorescence decay.
Definition DecayRange.h:30