mirror of https://github.com/CGAL/cgal
size to distance
This commit is contained in:
parent
1ee7c2d2ff
commit
b88534d9d8
|
|
@ -43,9 +43,9 @@ int main() {
|
||||||
Model &model= pdb.models().begin()->model();
|
Model &model= pdb.models().begin()->model();
|
||||||
assert(model.chains().size() != 0);
|
assert(model.chains().size() != 0);
|
||||||
Chain &p= model.chains().begin()->chain();
|
Chain &p= model.chains().begin()->chain();
|
||||||
unsigned int na= p.atoms().size();
|
unsigned int na= distance(p.atoms());
|
||||||
//p.write(std::cout);
|
//p.write(std::cout);
|
||||||
std::cout << "There are " << p.monomers().size() << " residues."
|
std::cout << "There are " << distance(p.monomers()) << " residues."
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
||||||
std::vector<Atom> atoms;
|
std::vector<Atom> atoms;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue