19 typedef std::list<Seed> ValueSet;
30 void erase(iterator where) { Seeds.erase(where); }
34 bool empty() {
return Seeds.empty(); }
35 iterator
begin() {
return Seeds.begin(); }
36 iterator
end() {
return Seeds.end(); }
37 Value&
front() {
return Seeds.front(); }
38 const_iterator
begin()
const {
return Seeds.begin(); }
39 const_iterator
end()
const {
return Seeds.end(); }
40 const Value&
front()
const {
return Seeds.front(); }
43 Seeds.push_back(seed);
46 Value&
add(
const Value& seed) {
48 for (where = Seeds.begin(); where != Seeds.end();
50 if (where->getNumBonds() < seed.
getNumBonds())
break;
51 iterator it = Seeds.insert(where, EmptySeed);
void setMoleculeFragment(const Seed &src)
Value & add(const Value &seed)
const_iterator begin() const
void erase(iterator where)
Value & push_back(const Value &seed)
const Value & front() const
const_iterator end() const
ValueSet::iterator iterator
ValueSet::const_iterator const_iterator
unsigned getNumBonds() const