summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2010-11-01 19:01:49 -0700
committerJosh Blum2010-11-01 19:01:49 -0700
commit38c60bd0bfb411c2557b84f92bcbd66395475ba6 (patch)
tree80487e6507a13d8fe24dd93511afee57838980fb
parent2aef04843d248d0584b4865c62d7ca0772113dc9 (diff)
downloadgnuradio-38c60bd0bfb411c2557b84f92bcbd66395475ba6.tar.gz
gnuradio-38c60bd0bfb411c2557b84f92bcbd66395475ba6.tar.bz2
gnuradio-38c60bd0bfb411c2557b84f92bcbd66395475ba6.zip
uhd: swig changes for templated ranges
-rw-r--r--gr-uhd/swig/uhd_swig.i12
1 files changed, 12 insertions, 0 deletions
diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i
index d332bb617..3c6773374 100644
--- a/gr-uhd/swig/uhd_swig.i
+++ b/gr-uhd/swig/uhd_swig.i
@@ -68,6 +68,7 @@ namespace std {
// used types
////////////////////////////////////////////////////////////////////////
%include <uhd/config.hpp>
+%include <uhd/utils/pimpl.hpp>
%include <uhd/types/ranges.hpp>
%include <uhd/types/tune_request.hpp>
%include <uhd/types/tune_result.hpp>
@@ -75,6 +76,17 @@ namespace std {
%include <uhd/types/time_spec.hpp>
%include <uhd/types/clock_config.hpp>
+//Re-create range typedefs here with %template as they are not imported.
+//Replicate all the levels of templated inheritance so swig understands.
+
+%template(float_range_t) uhd::range_t<float>;
+%template(_float_range_vector_t) std::vector<uhd::range_t<float> >;
+%template(gain_range_t) uhd::meta_range_t<float>;
+
+%template(double_range_t) uhd::range_t<double>;
+%template(_double_range_vector_t) std::vector<uhd::range_t<double> >;
+%template(freq_range_t) uhd::meta_range_t<double>;
+
////////////////////////////////////////////////////////////////////////
// block magic
////////////////////////////////////////////////////////////////////////