GNU Radio 3.6.4.2 C++ API
gr_types.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012-2013 Free Software Foundation, Inc.
3  *
4  * This file is part of GNU Radio
5  *
6  * GNU Radio 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, or (at your option)
9  * any later version.
10  *
11  * GNU Radio 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 GNU Radio; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef INCLUDED_GRNURADIO_TYPES_H
23 #define INCLUDED_GRNURADIO_TYPES_H
24 
25 // this section is to satisfy swig includes for gras.i
26 // since gras.i includes gr_types.h, we only have to edit this file
27 #include <gras/element.hpp>
28 #include <gras/block.hpp>
29 #include <gras/top_block.hpp>
30 #include <gras/hier_block.hpp>
31 
32 // and gnuradio apparently needs its own typedefs for stdint...
33 #ifdef __cplusplus
34 
35 #include <boost/cstdint.hpp>
36 typedef boost::int16_t gr_int16;
37 typedef boost::int32_t gr_int32;
38 typedef boost::int64_t gr_int64;
39 typedef boost::uint16_t gr_uint16;
40 typedef boost::uint32_t gr_uint32;
41 typedef boost::uint64_t gr_uint64;
42 
43 typedef std::vector<int> gr_vector_int;
44 typedef std::vector<unsigned int> gr_vector_uint;
45 typedef std::vector<float> gr_vector_float;
46 typedef std::vector<double> gr_vector_double;
47 typedef std::vector<void *> gr_vector_void_star;
48 typedef std::vector<const void *> gr_vector_const_void_star;
49 
50 #include <complex>
51 typedef std::complex<float> gr_complex;
52 typedef std::complex<double> gr_complexd;
53 
54 #endif
55 
56 #endif /* INCLUDED_GRNURADIO_TYPES_H */
unsigned short uint16_t
Definition: stdint.h:79
std::complex< double > gr_complexd
Definition: gr_complex.h:27
std::complex< float > gr_complex
Definition: gr_complex.h:26
unsigned int uint32_t
Definition: stdint.h:80
signed short int16_t
Definition: stdint.h:76
unsigned __int64 uint64_t
Definition: stdint.h:90
signed __int64 int64_t
Definition: stdint.h:89
signed int int32_t
Definition: stdint.h:77