- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Descriptors/AtomDescriptor.cpp
rb99bf3 r8cce2b 82 82 vector<atom*> res; 83 83 World::AtomSet atoms = getAtoms(); 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 } 84 for_each(atoms.begin_internal(), 85 atoms.end_internal(), 86 boost::bind(&AtomDescriptor_impl::checkAndAdd, 87 this,&res,_1)); 88 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); 89 94 } 90 return res;91 95 } 92 96
Note:
See TracChangeset
for help on using the changeset viewer.