AssemblyHelpers.cpp (pymol-open-source-2.2.0) | : | AssemblyHelpers.cpp (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 20 | skipping to change at line 20 | |||
#include "AssemblyHelpers.h" | #include "AssemblyHelpers.h" | |||
#include "MemoryDebug.h" | #include "MemoryDebug.h" | |||
/* | /* | |||
* Create a coordset for a segi (chain) selection | * Create a coordset for a segi (chain) selection | |||
*/ | */ | |||
CoordSet * CoordSetCopyFilterChains( | CoordSet * CoordSetCopyFilterChains( | |||
const CoordSet * other, | const CoordSet * other, | |||
const AtomInfoType * atInfo, | const AtomInfoType * atInfo, | |||
const std::set<lexidx_t> & chains_set) | const std::set<lexborrow_t> & chains_set) | |||
{ | { | |||
std::vector<int> idxmap; | std::vector<int> idxmap; | |||
idxmap.reserve(other->NIndex); | idxmap.reserve(other->NIndex); | |||
for (int idx = 0; idx < other->NIndex; ++idx) | for (int idx = 0; idx < other->NIndex; ++idx) | |||
if (chains_set.count(atInfo[other->IdxToAtm[idx]].segi) > 0) | if (chains_set.count(atInfo[other->IdxToAtm[idx]].segi) > 0) | |||
idxmap.push_back(idx); | idxmap.push_back(idx); | |||
CoordSet * cset = CoordSetNew(other->State.G); | CoordSet * cset = CoordSetNew(other->State.G); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |