Files
rdkit/Code/GraphMol/MonomerInfo.cpp
Greg Landrum 092552349c Fixes #4535: support operator<< for AtomPDBResidueInfo (#4564)
* Fixes #4535

First pass, not sure what the best fields are here

* update output format
2021-09-28 13:40:43 -04:00

22 lines
702 B
C++

//
// Copyright (C) 2021 Greg Landrum and other RDKit contributors
//
// @@ 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 <iostream>
#include "MonomerInfo.h"
using namespace RDKit;
//! allows AtomPDBResidueInfo objects to be dumped to streams
std::ostream &operator<<(std::ostream &target, const AtomPDBResidueInfo &apri) {
target << apri.getSerialNumber() << " " << apri.getName() << " "
<< apri.getResidueName() << " " << apri.getChainId() << " "
<< apri.getResidueNumber();
return target;
}