Merge branch 'upstream' into dfsg-orig
[debian/gnuradio] / gr-trellis / src / lib / trellis_metrics_s.h
index b4332bcc340534532e999a9e03d0605b39be1786..a30526a2775a58d72ba4a8c7ebfc163ff26df299 100644 (file)
@@ -6,7 +6,7 @@
  * 
  * 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)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  * 
  * GNU Radio is distributed in the hope that it will be useful,
@@ -16,8 +16,8 @@
  * 
  * 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.
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
  */
 
 // WARNING: this file is machine generated.  Edits will be over written
 class trellis_metrics_s;
 typedef boost::shared_ptr<trellis_metrics_s> trellis_metrics_s_sptr;
 
-trellis_metrics_s_sptr trellis_make_metrics_s (const int O, const int D,  const std::vector<short> &TABLE, trellis_metric_type_t TYPE);
+trellis_metrics_s_sptr trellis_make_metrics_s (int O, int D,  const std::vector<short> &TABLE, trellis_metric_type_t TYPE);
 
 /*!
  * \brief Evaluate metrics for use by the Viterbi algorithm.
- * \ingroup block
- *
+ * \ingroup coding_blk
  */
 class trellis_metrics_s : public gr_block
 {
@@ -45,14 +44,15 @@ class trellis_metrics_s : public gr_block
   trellis_metric_type_t d_TYPE;
   std::vector<short> d_TABLE;
 
-  friend trellis_metrics_s_sptr trellis_make_metrics_s (const int O, const int D,  const std::vector<short> &TABLE, trellis_metric_type_t TYPE);
-  trellis_metrics_s (const int O, const int D,  const std::vector<short> &TABLE, trellis_metric_type_t TYPE);
+  friend trellis_metrics_s_sptr trellis_make_metrics_s (int O, int D,  const std::vector<short> &TABLE, trellis_metric_type_t TYPE);
+  trellis_metrics_s (int O, int D,  const std::vector<short> &TABLE, trellis_metric_type_t TYPE);
 
 public:
   int O () const { return d_O; }
   int D () const { return d_D; }
   trellis_metric_type_t TYPE () const { return d_TYPE; }
   std::vector<short> TABLE () const { return d_TABLE; }
+  void set_TABLE (const std::vector<short> &table);
   void forecast (int noutput_items,
                 gr_vector_int &ninput_items_required);
   int general_work (int noutput_items,