资 源 简 介
HandleFactory is a C++ factory framework for creating handles to objects. Typically these objects will have private constructors and a private destructor in order to make sure that a user can only create instances of these objects using the HandleFactory framework. The HandleFactory framework typically returns handles to objects that are of "smart pointer" type, i.e., the handles point to the object and at the same time they keep track of the total number of handles that point to this same object. If this number becomes zero the object is deleted automatically. The HandleFactory framework provides the possiblity to generate handles of well known type such as boost::shared_ptr, boost::intrusive_ptr, std::auto_ptr. One can also generate handles of my own implementation of a reference counting smart pointer which is included with the library.