MemoryHost.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2023 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __dsp_MemoryHost_h_
10 #define __dsp_MemoryHost_h_
11 
12 #include "Memory.h"
13 
14 namespace dsp {
15 
17  class MemoryHost : public Memory
18  {
19  public:
20  void* do_allocate (size_t nbytes) override;
21  void do_free (void*) override;
22  void do_zero (void* ptr, size_t nbytes) override;
23  void do_copy (void* to, const void* from, size_t bytes) override;
24  bool on_host () const override { return true; }
25  };
26 
27 }
28 
29 #endif
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17

Generated using doxygen 1.8.17