2 #ifndef __RNAMake__atom__
3 #define __RNAMake__atom__
8 #include "base/types.h"
9 #include "math/xyz_vector.h"
58 auto spl = split_str_by_delimiter(s,
" ");
60 coords_ = Point(std::stof(spl[1]), std::stof(spl[2]), std::stof(spl[3]));
125 Point
const & ncoords) {
135 String
const & nname) {
155 typedef std::shared_ptr<Atom> AtomOP;
160 typedef std::vector<AtomOP> AtomOPs;
Atom(String const &name, Point const &coords)
Definition: atom.h:35
Atom(Atom const &a)
Definition: atom.h:68
String to_pdb_str(int)
Definition: atom.cc:20
String to_str()
Definition: atom.cc:15
String const & name() const
Definition: atom.h:107
Atom(String const &s)
Definition: atom.h:55
Point const coords() const
Definition: atom.h:114
void name(String const &nname)
Definition: atom.h:134
void coords(Point const &ncoords)
Definition: atom.h:124