src/NFcore/complexList.cpp
// NOTE: there should always be at least as many complex objects in existence as molecules,
//  since molecules are constructed as singleton complexes and the complex is not deleted (rather, unassigned)
//  if the molecule becomes bound in a larger complex. Therefore, we should never run out of complexes
//  on the queue (so long as we stick to the rule of: create new complex every time a new molecule is instantiated.
there should always be at least as many complex objects in existence as molecules,
since molecules are constructed as singleton complexes and the complex is not deleted (rather, unassigned)
if the molecule becomes bound in a larger complex. Therefore, we should never run out of complexes
on the queue (so long as we stick to the rule of: create new complex every time a new molecule is instantiated.
there should always be at least as many complex objects in existence as molecules since molecules are constructed as singleton complexes and the complex is not deleted ( rather unassigned ) if the molecule becomes bound in a larger complex . Therefore we should never run out of complexes on the queue ( so long as we stick to the rule of : create new complex every time a new molecule is instantiated .
Complex * ComplexList::getNextAvailableComplex()
{
	Complex * c = allComplexes.at(nextAvailableComplex.front());
	nextAvailableComplex.pop();
	return c;
}
Complex * ComplexList :: getNextAvailableComplex ( ) { Complex * c = allComplexes . at ( nextAvailableComplex . front ( ) ) ; nextAvailableComplex . pop ( ) ; return c ; }
NOTE: there should always be at least as many complex objects in existence as molecules,
since molecules are constructed as singleton complexes and the complex is not deleted (rather, unassigned)
if the molecule becomes bound in a larger complex.
NOTE : there should always be at least as many complex objects in existence as molecules since molecules are constructed as singleton complexes and the complex is not deleted ( rather unassigned ) if the molecule becomes bound in a larger complex .