tttrlib
A library for time-tagged time resolved data
Loading...
Searching...
No Matches
TTTRSelection.h
Go to the documentation of this file.
1#ifndef TTTRLIB_TTTRSELECTION_H
2#define TTTRLIB_TTTRSELECTION_H
3
4#include <memory> /* shared_ptr */
5
6#include "TTTRRange.h"
7
8class TTTRSelection : public TTTRRange{
9
10protected:
11
12 TTTR* _tttr = nullptr;
13
14public:
15
17 //auto p = std::make_shared<TTTR>(*this, selection, n_selection, true);
18 return _tttr;
19 }
20
21 void set_tttr(TTTR* tttr){
22 _tttr = tttr;
23 }
24
25 TTTRSelection(int start, int stop, TTTR* tttr){
26 _tttr = tttr;
27 _tttr_indices.insert(start);
28 _tttr_indices.insert(stop);
29 }
30
36
37 TTTRSelection(std::shared_ptr<TTTR> tttr = nullptr){
38 this->_tttr = tttr.get();
39 }
40
41};
42
43
44#endif //TTTRLIB_TTTRSELECTION_H
Time-Tagged Time-Resolved (TTTR) data class.
Definition TTTR.h:195
Represents a range of TTTR indices.
Definition TTTRRange.h:15
itlib::flat_set< int > _tttr_indices
Set of TTTR indices in the range.
Definition TTTRRange.h:23
Definition TTTRSelection.h:8
TTTRSelection(std::shared_ptr< TTTR > tttr=nullptr)
Definition TTTRSelection.h:37
TTTR * _tttr
Definition TTTRSelection.h:12
TTTRSelection(const TTTRSelection &p2)
Copy constructor.
Definition TTTRSelection.h:32
TTTR * get_tttr()
Definition TTTRSelection.h:16
TTTRSelection(int start, int stop, TTTR *tttr)
Definition TTTRSelection.h:25
void set_tttr(TTTR *tttr)
Definition TTTRSelection.h:21