// // Copyright (C) 2018 Dan Nealschneider // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #define NO_IMPORT_ARRAY #include #include #include // ours #include #include namespace python = boost::python; namespace RDKit { std::string stereoGroupClassDoc = "A collection of atoms with a defined stereochemical relationship.\n\n" "Used to help represent a sample with unknown stereochemistry, or that " "is a mix\nof diastereomers.\n"; struct stereogroup_wrap { static void wrap() { python::enum_( "StereoGroupType") .value("STEREO_ABSOLUTE", RDKit::StereoGroupType::STEREO_ABSOLUTE) .value("STEREO_OR", RDKit::StereoGroupType::STEREO_OR) .value("STEREO_AND", RDKit::StereoGroupType::STEREO_AND) .export_values(); python::class_("AtomVector") .def(python::vector_indexing_suite()); python::class_> ( "StereoGroup", stereoGroupClassDoc.c_str(), python::init<>()) .def("GetGroupType", &StereoGroup::getGroupType, "Returns the StereoGroupType.\n") .def("GetAtoms", &StereoGroup::getAtoms, "Access the atoms in the StereoGroup.\n", python::return_internal_reference< 1, python::with_custodian_and_ward_postcall<0, 1>>()); } }; } void wrap_stereogroup() { RDKit::stereogroup_wrap::wrap(); }