mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Add ScaffoldNetwork to csharp (#3289)
This commit is contained in:
@@ -21,3 +21,10 @@ typedef std::vector<unsigned> UINT_VECT;
|
||||
%include <GraphMol/ScaffoldNetwork/ScaffoldNetwork.h>
|
||||
%template(createScaffoldNetwork) RDKit::ScaffoldNetwork::createScaffoldNetwork<std::vector<boost::shared_ptr<RDKit::ROMol>>>;
|
||||
|
||||
// this is needed for the csharp wrappers to access count values as it does
|
||||
// not seem to be possible to wrap std::vector<unsigned>
|
||||
%extend RDKit::ScaffoldNetwork::ScaffoldNetwork {
|
||||
unsigned int nodeCount(unsigned int nodeNumber) {
|
||||
return $self->counts.at(nodeNumber);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user