mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
45 lines
1.3 KiB
C++
Executable File
45 lines
1.3 KiB
C++
Executable File
// $Id$
|
|
//
|
|
// Copyright (c) 2001-2006 greg Landrum and Rational Discovery LLC
|
|
//
|
|
// @@ All Rights Reserved @@
|
|
//
|
|
|
|
#include <boost/python.hpp>
|
|
#include <RDBoost/Wrap.h>
|
|
#include "DataStructs.h"
|
|
|
|
namespace python = boost::python;
|
|
|
|
void wrap_SBV();
|
|
void wrap_EBV();
|
|
void wrap_BitOps();
|
|
void wrap_Utils();
|
|
void wrap_discreteValVect();
|
|
void wrap_sparseIntVect();
|
|
|
|
|
|
BOOST_PYTHON_MODULE(cDataStructs)
|
|
{
|
|
python::scope().attr("__doc__") =
|
|
"Module containing an assortment of functionality for basic data structures.\n"
|
|
"\n"
|
|
"At the moment the data structures defined are:\n"
|
|
" Bit Vector classes (for storing signatures, fingerprints and the like:\n"
|
|
" - ExplicitBitVect: class for relatively small (10s of thousands of bits) or\n"
|
|
" dense bit vectors.\n"
|
|
" - SparseBitVect: class for large, sparse bit vectors\n"
|
|
" DiscreteValueVect: class for storing vectors of integers\n"
|
|
" SparseIntVect: class for storing sparse vectors of integers\n"
|
|
;
|
|
|
|
python::register_exception_translator<IndexErrorException>(&translate_index_error);
|
|
python::register_exception_translator<ValueErrorException>(&translate_value_error);
|
|
wrap_Utils();
|
|
wrap_SBV();
|
|
wrap_EBV();
|
|
wrap_BitOps();
|
|
wrap_discreteValVect();
|
|
wrap_sparseIntVect();
|
|
}
|