/* * AtomIdDescriptor.cpp * * Created on: Feb 5, 2010 * Author: crueger */ #include "AtomIdDescriptor.hpp" #include "atom.hpp" using namespace std; AtomIdDescriptor::AtomIdDescriptor(int _id) : id(_id) {} AtomIdDescriptor::~AtomIdDescriptor() {} atom *AtomIdDescriptor::find(){ map atoms = getAtoms(); map::iterator res = atoms.find(id); return (res!=atoms.end())?((*res).second):0; } vector AtomIdDescriptor::findAll(){ atom *res = find(); return (res)?(vector(1,res)):(vector()); }