08.11.2014 Views

Memory Management - Poco

Memory Management - Poco

Memory Management - Poco

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Instantiator Class Template<br />

> An instantiator for a class C must always be a subclass of<br />

<strong>Poco</strong>::AbstractInstantiator, where Base is a base class of C.<br />

> <strong>Poco</strong>::Instantiator is a template for a factory for a given class.<br />

> It basically defines a method createInstance() that creates a new<br />

instance of a class, using the new operator.<br />

> To work with class hierarchies, an Instantiator always inherits<br />

from <strong>Poco</strong>::AbstractInstantiator, which defines createInstance()<br />

for the base class.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!