Ignore:
Timestamp:
Feb 26, 2010, 11:47:16 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
98a2987
Parents:
3db67e
Message:

Changed the type of AtomIds and MoleculeIds to an opaque type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Descriptors/AtomIdDescriptor.cpp

    r3db67e r33bc66  
    1414
    1515
    16 AtomIdDescriptor_impl::AtomIdDescriptor_impl(int _id) :
     16AtomIdDescriptor_impl::AtomIdDescriptor_impl(atomId_t _id) :
    1717  id(_id)
    1818{}
     
    2525}
    2626
    27 AtomDescriptor AtomById(int id){
     27AtomDescriptor AtomById(atomId_t id){
    2828  return AtomDescriptor(AtomDescriptor::impl_ptr(new AtomIdDescriptor_impl(id)));
    2929}
    3030
    3131atom *AtomIdDescriptor_impl::find(){
    32   map<int,atom*> atoms = getAtoms();
    33   map<int,atom*>::iterator res = atoms.find(id);
     32  World::AtomSet atoms = getAtoms();
     33  World::AtomSet::iterator res = atoms.find(id);
    3434  return (res!=atoms.end())?((*res).second):0;
    3535}
Note: See TracChangeset for help on using the changeset viewer.