blob: 37970ae90840d539b06e3b979716117f6d849c80 [file] [log] [blame]
kurtis.heimerl8aea56e2011-11-26 03:18:30 +00001/*
2 * Written by Thomas Tsou <ttsou@vt.edu>
3 * Based on code by Harvind S Samra <hssamra@kestrelsp.com>
4 *
5 * Copyright 2011 Free Software Foundation, Inc.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * See the COPYING file in the main directory for details.
20 */
21
22#ifndef RADIOVECTOR_H
23#define RADIOVECTOR_H
24
25#include "sigProcLib.h"
26#include "GSMCommon.h"
27
28class radioVector : public signalVector {
29public:
30 radioVector(const signalVector& wVector, GSM::Time& wTime);
31 GSM::Time time() const;
32 void setTime(const GSM::Time& wTime);
33 bool operator>(const radioVector& other) const;
34
35private:
36 GSM::Time mTime;
37};
38
39class VectorFIFO {
40public:
41 unsigned size();
42 void put(radioVector *ptr);
43 radioVector *get();
44
45private:
46 PointerFIFO mQ;
47};
48
49class VectorQueue : public InterthreadPriorityQueue<radioVector> {
50public:
51 GSM::Time nextTime() const;
52 radioVector* getStaleBurst(const GSM::Time& targTime);
53 radioVector* getCurrentBurst(const GSM::Time& targTime);
54};
55
56#endif /* RADIOVECTOR_H */