summaryrefslogtreecommitdiff
path: root/gr-trellis/include/gnuradio/trellis/quicksort_index.h
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2013-04-30 12:58:22 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2013-04-30 12:58:22 -0700
commit02b89c6174b776acd2865443fbc19649b8b0e7d0 (patch)
tree9cc1da754cd7252212fe2d14ac4afe73275f5e38 /gr-trellis/include/gnuradio/trellis/quicksort_index.h
parent5e17e3ea05631c9d1e47ae601859008e9c1f6be9 (diff)
trellis: moved include dir to gnuradio/trellis
Diffstat (limited to 'gr-trellis/include/gnuradio/trellis/quicksort_index.h')
-rw-r--r--gr-trellis/include/gnuradio/trellis/quicksort_index.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/gr-trellis/include/gnuradio/trellis/quicksort_index.h b/gr-trellis/include/gnuradio/trellis/quicksort_index.h
new file mode 100644
index 0000000000..402962172a
--- /dev/null
+++ b/gr-trellis/include/gnuradio/trellis/quicksort_index.h
@@ -0,0 +1,41 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2004,2007,2012 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 3, 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., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef INCLUDED_QUICKSORT_INDEX_H
+#define INCLUDED_QUICKSORT_INDEX_H
+
+#include <vector>
+
+namespace gr {
+ namespace trellis {
+
+ template <class T>
+ void SWAP(T &a, T &b);
+
+ template <class T>
+ void quicksort_index(std::vector<T> &p, std::vector<int> &index,
+ int left, int right);
+
+ } /* namespace trellis */
+} /* namespace gr */
+
+#endif /* INCLUDED_QUICKSORT_INDEX_H */