{
_ResInfo.at(static_cast<std::size_t>(atomTypeName)) = atomIndex;
}
-void ResInfo::setInfo(const t_resinfo &info){
- *resinfo = info;
-}
+
std::size_t ResInfo::getIndex(backboneAtomTypes atomTypeName) const
{
return _ResInfo[static_cast<std::size_t>(atomTypeName)];
IndexMap.resize(0);
IndexMap.push_back(_backboneAtoms);
std::cout << "Trouble :(" << std::endl;
- IndexMap[i].setInfo(top.atoms()->resinfo[i]); // bad :(
- std::cout << "Something ended" << std::endl;
+ *(IndexMap[i].resinfo) = top.atoms()->resinfo[resicompare];
+ std::cout << "First resi is " << IndexMap[i].resinfo->name << std::endl;
for (gmx::ArrayRef<const int>::iterator ai{ initParams.sel_.atomIndices().begin() }; (ai != initParams.sel_.atomIndices().end()); ++ai){
if (resicompare != top.atoms()->atom[static_cast<std::size_t>(*ai)].resind)
{
public:
void setIndex(backboneAtomTypes atomTypeName, std::size_t atomIndex);
- void setInfo(const t_resinfo &info);
std::size_t getIndex(backboneAtomTypes atomTypeName) const;
t_resinfo *resinfo, *donor[2]{nullptr, nullptr}, *acceptor[2]{nullptr, nullptr};