- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Descriptors/AtomDescriptor.cpp
r8cce2b rb99bf3 82 82 vector<atom*> res; 83 83 World::AtomSet atoms = getAtoms(); 84 for_each(atoms.begin_internal(), 85 atoms.end_internal(), 86 boost::bind(&AtomDescriptor_impl::checkAndAdd, 87 this,&res,_1)); 84 atoms_iter_t iter; 85 for(iter=atoms.begin_internal();iter!=atoms.end_internal();++iter) { 86 if(predicate(*iter)){ 87 res.push_back((*iter).second); 88 } 89 } 88 90 return res; 89 }90 91 void AtomDescriptor_impl::checkAndAdd(std::vector<atom*> *v,std::pair<atomId_t,atom*> p){92 if(predicate(p)){93 v->push_back(p.second);94 }95 91 } 96 92
Note:
See TracChangeset
for help on using the changeset viewer.