Handler of FBPlug object Use this handler object to gracefully take care of dangling pointer problem. More...
#include <fbplug.h>
Public Member Functions | |
HdlFBPlug (const FBPlug *pFBPlug) | |
HdlFBPlug (HdlFBPlug const &pFBPlug) | |
bool | Ok () const |
bool | Is (int pTypeId) |
Is( int pTypeId ) More... | |
HdlFBPlug & | operator= (const FBPlug *pFBPlug) |
HdlFBPlug & | operator= (const HdlFBPlug &pFBPlug) |
bool | operator== (const HdlFBPlug &pFBPlug) const |
bool | operator!= (const HdlFBPlug &pFBPlug) const |
FBPlug * | GetPlug () const |
FBPlug * | operator() () const |
FBPlug * | operator-> () const |
operator FBPlug * () const | |
Protected Member Functions | |
void | SetPlug (const FBPlug *pFBPlug) |
Handler of FBPlug object Use this handler object to gracefully take care of dangling pointer problem.
For example, you created FBCamera object and hold it's pointer address to further usage, However, this FBCamera object could be destroyed by the application internally at any moment and its pointer you currently hold is invalid. But you don't easy way to tell so. This HdlFBPlug class provide means to handle this case gracefully.
bool Is | ( | int | pTypeId | ) |
pTypeId | Type Identification. |