pyann.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Sat, 20 Jun 2009 13:00:20 -0700 (2009-06-20)
changeset 7 fc7a9f78a5db
parent 0 dc27a515a0a3
child 10 f702cd835ca4
permissions -rw-r--r--
Added KDTree.__del__() that destroy the points to prevent memory leaks
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     1
#include <boost/python.hpp>
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     2
namespace bp = boost::python;
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     3
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     4
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     5
void export_ann_kd_tree();
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     6
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     7
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     8
BOOST_PYTHON_MODULE(pyANN)
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
     9
{
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    10
    export_ann_kd_tree();
dc27a515a0a3 Initial commit
Dmitriy Morozov <dmitriy@mrzv.org>
parents:
diff changeset
    11
};