/* * * Copyright (c) 2019, Greg Landrum * 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. * */ %{ #include #include #include typedef std::vector STR_VECT; %} %include "enums.swg" %include "std_string.i" %template(SparseIntVect64) RDKit::SparseIntVect; %template(ROMol_Vect) std::vector>; %template(StringMolMap_Vect) std::vector>>; %template(StringROMol_VectMap) std::map>>; %extend std::map> { std::vector keys() { std::vector _keys; for(auto it : *self) { std::cerr << "* '" << it.first << "'" << std::endl; _keys.push_back(it.first); } return _keys; } } %extend std::map>> { std::vector keys() { std::vector _keys; for(auto it : *self) { _keys.push_back(it.first); } return _keys; } } %include %include %include %include