commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] gnuradio-core/src lib/general.cvsignore lib/gen...


From: Robert McGwier
Subject: [Commit-gnuradio] gnuradio-core/src lib/general.cvsignore lib/gen...
Date: Fri, 16 Jun 2006 05:08:48 +0000

CVSROOT:        /sources/gnuradio
Module name:    gnuradio-core
Changes by:     Robert McGwier <rwmcgwier>      06/06/16 05:08:48

Modified files:
        src/lib/general: .cvsignore Makefile.gen general_generated.i 
                         generate_common.py 
        src/python/gnuradio/gr: qa_add_v_and_friends.py 
Added files:
        src/lib/general: gr_add_const_vXX.cc.t gr_add_const_vXX.h.t 
                         gr_add_const_vXX.i.t gr_multiply_const_vXX.cc.t 
                         gr_multiply_const_vXX.h.t 
                         gr_multiply_const_vXX.i.t 

Log message:
        Adding several more vector functions.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/.cvsignore?cvsroot=gnuradio&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/Makefile.gen?cvsroot=gnuradio&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/general_generated.i?cvsroot=gnuradio&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/generate_common.py?cvsroot=gnuradio&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/gr_add_const_vXX.cc.t?cvsroot=gnuradio&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/gr_add_const_vXX.h.t?cvsroot=gnuradio&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/gr_add_const_vXX.i.t?cvsroot=gnuradio&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/gr_multiply_const_vXX.cc.t?cvsroot=gnuradio&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/gr_multiply_const_vXX.h.t?cvsroot=gnuradio&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/lib/general/gr_multiply_const_vXX.i.t?cvsroot=gnuradio&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnuradio-core/src/python/gnuradio/gr/qa_add_v_and_friends.py?cvsroot=gnuradio&r1=1.2&r2=1.3

Patches:
Index: lib/general/.cvsignore
===================================================================
RCS file: /sources/gnuradio/gnuradio-core/src/lib/general/.cvsignore,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- lib/general/.cvsignore      14 Jun 2006 06:10:55 -0000      1.12
+++ lib/general/.cvsignore      16 Jun 2006 05:08:48 -0000      1.13
@@ -111,6 +111,18 @@
 gr_add_const_ss.cc
 gr_add_const_ss.h
 gr_add_const_ss.i
+gr_add_const_vcc.cc
+gr_add_const_vcc.h
+gr_add_const_vcc.i
+gr_add_const_vff.cc
+gr_add_const_vff.h
+gr_add_const_vff.i
+gr_add_const_vii.cc
+gr_add_const_vii.h
+gr_add_const_vii.i
+gr_add_const_vss.cc
+gr_add_const_vss.h
+gr_add_const_vss.i
 gr_add_ff.cc
 gr_add_ff.h
 gr_add_ff.i

Index: lib/general/Makefile.gen
===================================================================
RCS file: /sources/gnuradio/gnuradio-core/src/lib/general/Makefile.gen,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- lib/general/Makefile.gen    13 Jun 2006 13:28:52 -0000      1.9
+++ lib/general/Makefile.gen    16 Jun 2006 05:08:48 -0000      1.10
@@ -8,6 +8,10 @@
        gr_add_const_ii.h \
        gr_add_const_sf.h \
        gr_add_const_ss.h \
+       gr_add_const_vcc.h \
+       gr_add_const_vff.h \
+       gr_add_const_vii.h \
+       gr_add_const_vss.h \
        gr_add_ff.h \
        gr_add_ii.h \
        gr_add_ss.h \
@@ -77,6 +81,10 @@
        gr_add_const_ii.i \
        gr_add_const_sf.i \
        gr_add_const_ss.i \
+       gr_add_const_vcc.i \
+       gr_add_const_vff.i \
+       gr_add_const_vii.i \
+       gr_add_const_vss.i \
        gr_add_ff.i \
        gr_add_ii.i \
        gr_add_ss.i \
@@ -146,6 +154,10 @@
        gr_add_const_ii.cc \
        gr_add_const_sf.cc \
        gr_add_const_ss.cc \
+       gr_add_const_vcc.cc \
+       gr_add_const_vff.cc \
+       gr_add_const_vii.cc \
+       gr_add_const_vss.cc \
        gr_add_ff.cc \
        gr_add_ii.cc \
        gr_add_ss.cc \

Index: lib/general/general_generated.i
===================================================================
RCS file: /sources/gnuradio/gnuradio-core/src/lib/general/general_generated.i,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- lib/general/general_generated.i     13 Jun 2006 13:28:52 -0000      1.9
+++ lib/general/general_generated.i     16 Jun 2006 05:08:48 -0000      1.10
@@ -8,6 +8,10 @@
 #include <gr_add_const_ii.h>
 #include <gr_add_const_sf.h>
 #include <gr_add_const_ss.h>
+#include <gr_add_const_vcc.h>
+#include <gr_add_const_vff.h>
+#include <gr_add_const_vii.h>
+#include <gr_add_const_vss.h>
 #include <gr_add_ff.h>
 #include <gr_add_ii.h>
 #include <gr_add_ss.h>
@@ -77,6 +81,10 @@
 %include <gr_add_const_ii.i>
 %include <gr_add_const_sf.i>
 %include <gr_add_const_ss.i>
+%include <gr_add_const_vcc.i>
+%include <gr_add_const_vff.i>
+%include <gr_add_const_vii.i>
+%include <gr_add_const_vss.i>
 %include <gr_add_ff.i>
 %include <gr_add_ii.i>
 %include <gr_add_ss.i>

Index: lib/general/generate_common.py
===================================================================
RCS file: /sources/gnuradio/gnuradio-core/src/lib/general/generate_common.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- lib/general/generate_common.py      13 Jun 2006 13:28:52 -0000      1.10
+++ lib/general/generate_common.py      16 Jun 2006 05:08:48 -0000      1.11
@@ -48,7 +48,8 @@
     'gr_divide_XX',
     'gr_mute_XX',
     'gr_add_vXX',
-    'gr_multiply_vXX'
+    'gr_multiply_vXX',
+    'gr_add_const_vXX'
     ]
 
 # other blocks

Index: python/gnuradio/gr/qa_add_v_and_friends.py
===================================================================
RCS file: 
/sources/gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_add_v_and_friends.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- python/gnuradio/gr/qa_add_v_and_friends.py  13 Jun 2006 16:31:54 -0000      
1.2
+++ python/gnuradio/gr/qa_add_v_and_friends.py  16 Jun 2006 05:08:48 -0000      
1.3
@@ -82,6 +82,47 @@
         result_data = dst.data()
         self.assertEqual(exp_data, result_data)
 
+    def help_const_ss(self, src_data, exp_data, op):
+       src = gr.vector_source_s(src_data)
+       srcv = gr.stream_to_vector(gr.sizeof_short, len(src_data))
+       rhs = gr.vector_to_stream(gr.sizeof_short, len(src_data))
+        dst = gr.vector_sink_s()
+        self.fg.connect(src, srcv, op, rhs, dst)
+        self.fg.run()
+        result_data = dst.data()
+        self.assertEqual(exp_data, result_data)
+       
+    def help_const_ii(self, src_data, exp_data, op):
+       src = gr.vector_source_i(src_data)
+       srcv = gr.stream_to_vector(gr.sizeof_int, len(src_data))
+       rhs = gr.vector_to_stream(gr.sizeof_int, len(src_data))
+        dst = gr.vector_sink_i()
+        self.fg.connect(src, srcv, op, rhs, dst)
+        self.fg.run()
+        result_data = dst.data()
+        self.assertEqual(exp_data, result_data)
+       
+    def help_const_ff(self, src_data, exp_data, op):
+       src = gr.vector_source_f(src_data)
+       srcv = gr.stream_to_vector(gr.sizeof_float, len(src_data))
+       rhs = gr.vector_to_stream(gr.sizeof_float, len(src_data))
+        dst = gr.vector_sink_f()
+        self.fg.connect(src, srcv, op, rhs, dst)
+        self.fg.run()
+        result_data = dst.data()
+        self.assertEqual(exp_data, result_data)
+       
+    def help_const_cc(self, src_data, exp_data, op):
+       src = gr.vector_source_c(src_data)
+       srcv = gr.stream_to_vector(gr.sizeof_gr_complex, len(src_data))
+       rhs = gr.vector_to_stream(gr.sizeof_gr_complex, len(src_data))
+        dst = gr.vector_sink_c()
+        self.fg.connect(src, srcv, op, rhs, dst)
+        self.fg.run()
+        result_data = dst.data()
+        self.assertEqual(exp_data, result_data)
+       
+
     def test_add_vss_one(self):
        src1_data = (1,)
        src2_data = (2,)
@@ -146,6 +187,55 @@
        op = gr.add_vcc(5)
        self.help_cc(5, (src1_data, src2_data, src3_data), expected_result, op)
 
+    def test_add_const_vss_one(self):
+       src_data = (1,)
+       op = gr.add_const_vss((2,))
+       exp_data = (3,)
+       self.help_const_ss(src_data, exp_data, op)
+
+    def test_add_const_vss_five(self):
+       src_data = (1, 2, 3, 4, 5)
+       op = gr.add_const_vss((6, 7, 8, 9, 10))
+       exp_data = (7, 9, 11, 13, 15)
+       self.help_const_ss(src_data, exp_data, op)
+
+    def test_add_const_vii_one(self):
+       src_data = (1,)
+       op = gr.add_const_vii((2,))
+       exp_data = (3,)
+       self.help_const_ii(src_data, exp_data, op)
+
+    def test_add_const_vii_five(self):
+       src_data = (1, 2, 3, 4, 5)
+       op = gr.add_const_vii((6, 7, 8, 9, 10))
+       exp_data = (7, 9, 11, 13, 15)
+       self.help_const_ii(src_data, exp_data, op)
+
+    def test_add_const_vff_one(self):
+       src_data = (1.0,)
+       op = gr.add_const_vff((2.0,))
+       exp_data = (3.0,)
+       self.help_const_ff(src_data, exp_data, op)
+
+    def test_add_const_vff_five(self):
+       src_data = (1.0, 2.0, 3.0, 4.0, 5.0)
+       op = gr.add_const_vff((6.0, 7.0, 8.0, 9.0, 10.0))
+       exp_data = (7.0, 9.0, 11.0, 13.0, 15.0)
+       self.help_const_ff(src_data, exp_data, op)
+
+    def test_add_const_vcc_one(self):
+       src_data = (1.0+2.0j,)
+       op = gr.add_const_vcc((2.0+3.0j,))
+       exp_data = (3.0+5.0j,)
+       self.help_const_cc(src_data, exp_data, op)
+
+    def test_add_const_vcc_five(self):
+       src_data = (1.0+2.0j, 3.0+4.0j, 5.0+6.0j, 7.0+8.0j, 9.0+10.0j)
+       op = gr.add_const_vcc((11.0+12.0j, 13.0+14.0j, 15.0+16.0j, 17.0+18.0j, 
19.0+20.0j))
+       exp_data = (12.0+14.0j, 16.0+18.0j, 20.0+22.0j, 24.0+26.0j, 28.0+30.0j)
+       self.help_const_cc(src_data, exp_data, op)
+
+
     def test_multiply_vss_one(self):
        src1_data = (1,)
        src2_data = (2,)

Index: lib/general/gr_add_const_vXX.cc.t
===================================================================
RCS file: lib/general/gr_add_const_vXX.cc.t
diff -N lib/general/gr_add_const_vXX.cc.t
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lib/general/gr_add_const_vXX.cc.t   16 Jun 2006 05:08:48 -0000      1.1
@@ -0,0 +1,61 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2004,2006 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+// @WARNING@
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <@address@hidden>
+#include <gr_io_signature.h>
+
address@hidden@
address@hidden@ (const std::vector<@I_TYPE@> k)
+{
+  return @SPTR_NAME@ (new @NAME@ (k));
+}
+
address@hidden@::@NAME@ (const std::vector<@I_TYPE@> k)
+  : gr_sync_block ("@BASE_NAME@",
+                  gr_make_io_signature (1, 1, sizeof(@I_TYPE@)*k.size()),
+                  gr_make_io_signature (1, 1, sizeof(@O_TYPE@)*k.size()))
+{
+  d_k = k;
+}
+
+int
address@hidden@::work (int noutput_items,
+                  gr_vector_const_void_star &input_items,
+                  gr_vector_void_star &output_items)
+{
+  @I_TYPE@ *iptr = (@O_TYPE@ *)input_items[0];
+  @O_TYPE@ *optr = (@O_TYPE@ *)output_items[0];
+ 
+  int nitems_per_block = 
output_signature()->sizeof_stream_item(0)/sizeof(@I_TYPE@);
+
+  for (int i = 0; i < noutput_items; i++)
+    for (int j = 0; j < nitems_per_block; j++)
+      *optr++ = *iptr++ + d_k[j];
+  
+  return noutput_items;
+}

Index: lib/general/gr_add_const_vXX.h.t
===================================================================
RCS file: lib/general/gr_add_const_vXX.h.t
diff -N lib/general/gr_add_const_vXX.h.t
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lib/general/gr_add_const_vXX.h.t    16 Jun 2006 05:08:48 -0000      1.1
@@ -0,0 +1,55 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2004,2006 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+// @WARNING@
+
+#ifndef @GUARD_NAME@
+#define @GUARD_NAME@
+
+#include <gr_sync_block.h>
+
+class @NAME@;
+typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
+
address@hidden@ address@hidden@ (const std::vector<@I_TYPE@> k);
+
+/*!
+ * \brief output vector = input vector + constant vector
+ * \ingroup block
+ */
+class @NAME@ : public gr_sync_block
+{
+  friend @SPTR_NAME@ address@hidden@ (const std::vector<@I_TYPE@> k);
+
+  std::vector<@I_TYPE@> d_k; // the constant
+  @NAME@ (const std::vector<@I_TYPE@> k);
+
+ public:
+  const std::vector<@I_TYPE@> k () const { return d_k; }
+  void set_k (const std::vector<@I_TYPE@> k) { d_k = k; }
+
+  int work (int noutput_items,
+           gr_vector_const_void_star &input_items,
+           gr_vector_void_star &output_items);
+};
+
+#endif

Index: lib/general/gr_add_const_vXX.i.t
===================================================================
RCS file: lib/general/gr_add_const_vXX.i.t
diff -N lib/general/gr_add_const_vXX.i.t
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lib/general/gr_add_const_vXX.i.t    16 Jun 2006 05:08:48 -0000      1.1
@@ -0,0 +1,37 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2004,2006 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+// @WARNING@
+
+GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
+
address@hidden@ address@hidden@ (const std::vector<@I_TYPE@> k);
+
+class @NAME@ : public gr_sync_block
+{
+ private:
+  @NAME@ (const std::vector<@I_TYPE@> k);
+
+ public:
+  std::vector<@I_TYPE@> k () const { return d_k; }
+  void set_k (const std::vector<@I_TYPE@> k) { d_k = k; }
+};

Index: lib/general/gr_multiply_const_vXX.cc.t
===================================================================
RCS file: lib/general/gr_multiply_const_vXX.cc.t
diff -N lib/general/gr_multiply_const_vXX.cc.t
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lib/general/gr_multiply_const_vXX.cc.t      16 Jun 2006 05:08:48 -0000      
1.1
@@ -0,0 +1,61 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2004,2006 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+// @WARNING@
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <@address@hidden>
+#include <gr_io_signature.h>
+
address@hidden@
address@hidden@ (const std::vector<@I_TYPE@> k)
+{
+  return @SPTR_NAME@ (new @NAME@ (k));
+}
+
address@hidden@::@NAME@ (const std::vector<@I_TYPE@> k)
+  : gr_sync_block ("@BASE_NAME@",
+                  gr_make_io_signature (1, 1, sizeof(@I_TYPE@)*k.size()),
+                  gr_make_io_signature (1, 1, sizeof(@O_TYPE@)*k.size()))
+{
+  d_k = k;
+}
+
+int
address@hidden@::work (int noutput_items,
+                  gr_vector_const_void_star &input_items,
+                  gr_vector_void_star &output_items)
+{
+  @I_TYPE@ *iptr = (@O_TYPE@ *)input_items[0];
+  @O_TYPE@ *optr = (@O_TYPE@ *)output_items[0];
+ 
+  int nitems_per_block = 
output_signature()->sizeof_stream_item(0)/sizeof(@I_TYPE@);
+
+  for (int i = 0; i < noutput_items; i++)
+    for (int j = 0; j < nitems_per_block; j++)
+      *optr++ = *iptr++ * d_k[j];
+  
+  return noutput_items;
+}

Index: lib/general/gr_multiply_const_vXX.h.t
===================================================================
RCS file: lib/general/gr_multiply_const_vXX.h.t
diff -N lib/general/gr_multiply_const_vXX.h.t
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lib/general/gr_multiply_const_vXX.h.t       16 Jun 2006 05:08:48 -0000      
1.1
@@ -0,0 +1,55 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2004,2006 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+// @WARNING@
+
+#ifndef @GUARD_NAME@
+#define @GUARD_NAME@
+
+#include <gr_sync_block.h>
+
+class @NAME@;
+typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
+
address@hidden@ address@hidden@ (const std::vector<@I_TYPE@> k);
+
+/*!
+ * \brief output vector = input vector * constant vector (element-wise)
+ * \ingroup block
+ */
+class @NAME@ : public gr_sync_block
+{
+  friend @SPTR_NAME@ address@hidden@ (const std::vector<@I_TYPE@> k);
+
+  std::vector<@I_TYPE@> d_k; // the constant
+  @NAME@ (const std::vector<@I_TYPE@> k);
+
+ public:
+  const std::vector<@I_TYPE@> k () const { return d_k; }
+  void set_k (const std::vector<@I_TYPE@> k) { d_k = k; }
+
+  int work (int noutput_items,
+           gr_vector_const_void_star &input_items,
+           gr_vector_void_star &output_items);
+};
+
+#endif

Index: lib/general/gr_multiply_const_vXX.i.t
===================================================================
RCS file: lib/general/gr_multiply_const_vXX.i.t
diff -N lib/general/gr_multiply_const_vXX.i.t
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lib/general/gr_multiply_const_vXX.i.t       16 Jun 2006 05:08:48 -0000      
1.1
@@ -0,0 +1,37 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2004,2006 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING.  If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+// @WARNING@
+
+GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
+
address@hidden@ address@hidden@ (const std::vector<@I_TYPE@> k);
+
+class @NAME@ : public gr_sync_block
+{
+ private:
+  @NAME@ (const std::vector<@I_TYPE@> k);
+
+ public:
+  std::vector<@I_TYPE@> k () const { return d_k; }
+  void set_k (const std::vector<@I_TYPE@> k) { d_k = k; }
+};




reply via email to

[Prev in Thread] Current Thread [Next in Thread]