Changeset 973c03 for molecuilder/src/Descriptors/AtomIdDescriptor.cpp
- Timestamp:
- Feb 8, 2010, 4:23:03 PM (16 years ago)
- Children:
- 323177
- Parents:
- 86b917
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Descriptors/AtomIdDescriptor.cpp
r86b917 r973c03 19 19 {} 20 20 21 bool AtomIdDescriptor::predicate(std::pair<int,atom*> atom) { 22 return atom.second->getId()==id; 23 } 24 25 AtomDescriptor::desc_ptr AtomIdDescriptor::clone() const{ 26 return desc_ptr(new AtomIdDescriptor(id)); 27 } 28 29 #if 0 30 31 // so far the lookuptable for Atoms-by-id does not work, since atoms don't get an ID upon creation. 32 // instead of this we rely on walking through all atoms. 21 33 22 34 atom *AtomIdDescriptor::find(){ … … 30 42 return (res)?(vector<atom*>(1,res)):(vector<atom*>()); 31 43 } 44 45 #endif
Note:
See TracChangeset
for help on using the changeset viewer.