Reserve.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2013 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __Reserve_h
10 #define __Reserve_h
11 
12 #include "ReferenceAble.h"
13 #include <inttypes.h>
14 
15 namespace dsp {
16 
17  class TimeSeries;
18 
20  class Reserve : public Reference::Able
21  {
22  public:
23 
24  Reserve ();
25 
27  void reserve (const TimeSeries*, uint64_t samples);
28 
29  uint64_t get_reserved () const { return reserved; }
30 
31  private:
32 
34  uint64_t reserved;
35 
37  const TimeSeries* sanity_check;
38 
39  };
40 
41 }
42 
43 #endif // !defined(__Reserve_h)
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
void change_reserve(int64_t change) const
Change the amount of memory reserved at the start of the buffer.
Definition: TimeSeries.C:700
Arrays of consecutive samples for each polarization and frequency channel.
Definition: TimeSeries.h:29
void reserve(const TimeSeries *, uint64_t samples)
Set the minimum number of samples that can be processed.
Definition: Reserve.C:23

Generated using doxygen 1.8.17