Debian Codegraph @

src/samplebuffer.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 <QMutex>
23 #include <complex>
24 #include <memory>
25 #include "samplesource.h"cxx . . $ `<file>/src/samplesource.h`/
26
27 template <typename Tin, typename Tout>
28 class SampleBuffercxx . . $ SampleBuffer# : public SampleSourcecxx . . $ SampleSource#<Tout>, public Subscribercxx . . $ Subscriber#
29 {
30 private:
31 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<SampleSourcecxx . . $ SampleSource#<Tin>> srccxx . . $ SampleBuffer#src.;
32 QMutexcxx . . $ QMutex# mutexcxx . . $ SampleBuffer#mutex.;
33
34 public:
35 SampleBuffercxx . . $ SampleBuffer#`SampleBuffer<Tin, Tout>`(e56b1ac432f4bb17).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<SampleSourcecxx . . $ SampleSource#<Tin>> src);
36 ~cxx . . $ SampleBuffer#`~SampleBuffer<Tin, Tout>`(49f6e7a06ebc5aa8).SampleBuffer();
37 void invalidateEventcxx . . $ SampleBuffer#invalidateEvent(49f6e7a06ebc5aa8).();
38 virtual stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Tout[]> getSamplescxx . . $ SampleBuffer#getSamples(a5b25bfb67e8cd12).(size_t start, size_t length);
39 virtual void workcxx . . $ SampleBuffer#work(cf607f79dc20ecb0).(void *input, void *output, int count, size_t sampleid) = 0;
40 virtual size_t countcxx . . $ SampleBuffer#count(f708dce9a8856c70).() {
41 return srccxx . . $ SampleBuffer#src.->count();
42 };
43 double ratecxx . . $ SampleBuffer#rate(31fa7155c10fdd13).() {
44 return srccxx . . $ SampleBuffer#src.->rate();
45 };
46
47 float relativeBandwidthcxx . . $ SampleBuffer#relativeBandwidth(9b8c9e39889c762c).() {
48 return srccxx . . $ SampleBuffer#src.->relativeBandwidth();
49 }
50 };