[mlpack] 78/207: Declare copy and move constructors.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Thu Mar 23 17:53:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 163c7a8414bb7d4544a9819c02275168a549d412
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Aug 10 16:08:27 2016 -0400
Declare copy and move constructors.
---
src/mlpack/methods/neighbor_search/neighbor_search.hpp | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/mlpack/methods/neighbor_search/neighbor_search.hpp b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
index 064a6af..f8b64de 100644
--- a/src/mlpack/methods/neighbor_search/neighbor_search.hpp
+++ b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
@@ -309,6 +309,16 @@ class NeighborSearch
const double epsilon = 0,
const MetricType metric = MetricType());
+ /**
+ * Copy the given NeighborSearch object (this may consume a lot of memory; be
+ * careful!).
+ */
+ NeighborSearch(const NeighborSearch& other);
+
+ /**
+ * Take possession of the given NeighborSearch object.
+ */
+ NeighborSearch(NeighborSearch&& other);
/**
* Delete the NeighborSearch object. The tree is the only member we are
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list