summaryrefslogtreecommitdiffstats
path: root/ml/dlib/tools/python/src/opaque_types.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:19:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:53:24 +0000
commitb5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch)
treed4d31289c39fc00da064a825df13a0b98ce95b10 /ml/dlib/tools/python/src/opaque_types.h
parentAdding upstream version 1.44.3. (diff)
downloadnetdata-upstream.tar.xz
netdata-upstream.zip
Adding upstream version 1.46.3.upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/dlib/tools/python/src/opaque_types.h')
-rw-r--r--ml/dlib/tools/python/src/opaque_types.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/ml/dlib/tools/python/src/opaque_types.h b/ml/dlib/tools/python/src/opaque_types.h
deleted file mode 100644
index 1a31c08df..000000000
--- a/ml/dlib/tools/python/src/opaque_types.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (C) 2017 Davis E. King (davis@dlib.net)
-// License: Boost Software License See LICENSE.txt for the full license.
-#ifndef DLIB_PyTHON_OPAQUE_TYPES_H_
-#define DLIB_PyTHON_OPAQUE_TYPES_H_
-
-#include <dlib/python.h>
-#include <dlib/geometry.h>
-#include <pybind11/stl_bind.h>
-#include <vector>
-#include <dlib/matrix.h>
-#include <dlib/image_processing/full_object_detection.h>
-#include <map>
-#include <dlib/svm/ranking_tools.h>
-
-// All uses of PYBIND11_MAKE_OPAQUE need to be in this common header to avoid ODR
-// violations.
-PYBIND11_MAKE_OPAQUE(std::vector<dlib::rectangle>);
-PYBIND11_MAKE_OPAQUE(std::vector<std::vector<dlib::rectangle>>);
-
-PYBIND11_MAKE_OPAQUE(std::vector<double>);
-
-
-typedef std::vector<dlib::matrix<double,0,1>> column_vectors;
-PYBIND11_MAKE_OPAQUE(column_vectors);
-PYBIND11_MAKE_OPAQUE(std::vector<column_vectors>);
-
-typedef std::pair<unsigned long,unsigned long> ulong_pair;
-PYBIND11_MAKE_OPAQUE(ulong_pair);
-PYBIND11_MAKE_OPAQUE(std::vector<ulong_pair>);
-PYBIND11_MAKE_OPAQUE(std::vector<std::vector<ulong_pair>>);
-
-typedef std::pair<unsigned long,double> ulong_double_pair;
-PYBIND11_MAKE_OPAQUE(ulong_double_pair);
-PYBIND11_MAKE_OPAQUE(std::vector<ulong_double_pair>);
-PYBIND11_MAKE_OPAQUE(std::vector<std::vector<ulong_double_pair>>);
-PYBIND11_MAKE_OPAQUE(std::vector<std::vector<std::vector<ulong_double_pair> > >);
-
-PYBIND11_MAKE_OPAQUE(std::vector<dlib::mmod_rect>);
-PYBIND11_MAKE_OPAQUE(std::vector<std::vector<dlib::mmod_rect> >);
-PYBIND11_MAKE_OPAQUE(std::vector<dlib::full_object_detection>);
-
-typedef std::map<std::string,dlib::point> parts_list_type;
-PYBIND11_MAKE_OPAQUE(parts_list_type);
-
-typedef std::vector<dlib::ranking_pair<dlib::matrix<double,0,1>>> ranking_pairs;
-typedef std::vector<std::pair<unsigned long,double> > sparse_vect;
-typedef std::vector<dlib::ranking_pair<sparse_vect> > sparse_ranking_pairs;
-PYBIND11_MAKE_OPAQUE(ranking_pairs);
-PYBIND11_MAKE_OPAQUE(sparse_ranking_pairs);
-
-
-PYBIND11_MAKE_OPAQUE(std::vector<dlib::point>);
-
-#endif // DLIB_PyTHON_OPAQUE_TYPES_H_
-