19 #ifndef OST_RESIDUE_PROP_HH
20 #define OST_RESIDUE_PROP_HH
23 #include <boost/operators.hpp>
27 namespace ost {
namespace mol {
31 boost::additive<ResNum, int,
32 boost::additive<ResNum,
33 boost::totally_ordered<ResNum,
34 boost::totally_ordered<ResNum, int,
35 boost::unit_steppable<ResNum> > > > >
54 return num_==r.num_ && alt_==r.alt_;
59 return num_==r.num_ ? alt_<r.alt_ : num_<r.num_;
100 char alt= alt_==
'\0' ?
'a' : alt_+1;
110 inline String AsString()
const;
138 std::stringstream ss;
std::vector< ResNum > ResNumList
DLLEXPORT_OST_MOL std::ostream & operator<<(std::ostream &os, const AtomBase &atom)
String AsString() const
get residue number as String
bool operator<(const ResNum &r) const
ResNum NextInsertionCode() const
void SetInsCode(char ins_code)
int operator-=(const ResNum &r)
int operator+=(const ResNum &r)
bool operator==(const ResNum &r) const