#include <CdbAlwaysClosePolicy.hh>
Static Public Member Functions | |
| void | close (P *ptr) |
| Close specified pointer. | |
This class is passed as a parameter to the counted smart pointer classes in order to close a pointed object (pointee) when (right before) it's going to be destroyed.
This particular implementation ensures that a pointed object gets always closed before deleted. This means that some interraction with this class takes place. So we expect the pointee class to expose the following interface:
class P ... {
public:
...
bool isOpen( );
void close( );
};
Definition at line 30 of file CdbAlwaysClosePolicy.hh.
|
||||||||||
|
Close specified pointer. In accordance with this policy this method interracts with specified object and makes sure it's closed. Definition at line 14 of file CdbAlwaysClosePolicy.cc. |
1.3-rc3