Debian Codegraph @

src/samplesource.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2015, Mike Walters <[email protected]>
3 *
4 * This file is part of inspectrum.
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #pragma once
21
22 #include <complex>
23 #include <memory>
24 #include "abstractsamplesource.h"cxx . . $ `<file>/src/abstractsamplesource.h`/
25
26 #include "util.h"cxx . . $ `<file>/src/util.h`/
27 #include <QString>
28 #include <QObject>
29
30 class Annotationcxx . . $ Annotation#
31 {
32 public:
33 range_tcxx . . $ range_t#<size_t> sampleRangecxx . . $ Annotation#sampleRange.;
34 range_tcxx . . $ range_t#<double> frequencyRangecxx . . $ Annotation#frequencyRange.;
35 QStringcxx . . $ QString# labelcxx . . $ Annotation#label.;
36 QStringcxx . . $ QString# commentcxx . . $ Annotation#comment.;
37
38 Annotationcxx . . $ Annotation#Annotation(a8b65a96c02c2a27).(range_tcxx . . $ range_t#<size_t> sampleRange, range_tcxx . . $ range_t#<double>frequencyRange, QStringcxx . . $ QString# label,
39 QStringcxx . . $ QString# comment)
40 : sampleRangecxx . . $ Annotation#sampleRange.(sampleRange), frequencyRangecxx . . $ Annotation#frequencyRange.(frequencyRange), labelcxx . . $ Annotation#label.(label),
41 commentcxx . . $ Annotation#comment.(comment) {}
42 };
43
44 template<typename T>
45 class SampleSourcecxx . . $ SampleSource# : public AbstractSampleSourcecxx . . $ AbstractSampleSource#
46 {
47 protected:
48 double frequencycxx . . $ SampleSource#frequency.;
49
50 public:
51 virtual ~cxx . . $ SampleSource#`~SampleSource<T>`(49f6e7a06ebc5aa8).SampleSource() {};
52
53 virtual stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<T[]> getSamplescxx . . $ SampleSource#getSamples(beb84398f18d5b52).(size_t start, size_t length) = 0;
54 virtual void invalidateEventcxx . . $ SampleSource#invalidateEvent(49f6e7a06ebc5aa8).() { };
55 virtual size_t countcxx . . $ SampleSource#count(f708dce9a8856c70).() = 0;
56 virtual double ratecxx . . $ SampleSource#rate(31fa7155c10fdd13).() = 0;
57 virtual float relativeBandwidthcxx . . $ SampleSource#relativeBandwidth(9b8c9e39889c762c).() = 0;
58 stdcxx . . $ std/::vectorcxx . . $ std/vector#<Annotationcxx . . $ Annotation#> annotationListcxx . . $ SampleSource#annotationList.;
59 stdcxx . . $ std/::type_indexcxx . . $ std/type_index# sampleTypecxx . . $ SampleSource#sampleType(11101e0a2e3ca7a8).() override;
60 virtual bool realSignalcxx . . $ SampleSource#realSignal(c9857a73d68e59ba).() { return false; };
61 double getFrequencycxx . . $ SampleSource#getFrequency(31fa7155c10fdd13).();
62 };