I have just managed to get my head (mostly) around the factory pattern but at the moment I am stuck trying to access created objects.
I store them in an STL vector:
As far as I can tell, this is a reasonable and functioning way to do this.Code:Vector.push_back (Factory::BuildObject());
How do I call my object's functions, or even find out in which 'position' of the vector, a certain object is held?