#include <ScopedDynObj.hpp>
Public Member Functions | |
ScopedDynObj (T *pt=NULL) | |
template<class A> | |
ScopedDynObj (A arg) | |
template<class A> | |
ScopedDynObj (const char *lib_name, A arg) | |
T & | operator() () |
bool | IsOk () |
Protected Member Functions | |
void | DoAssign (T *pt) |
ScopedDynObj< T >::ScopedDynObj | ( | T * | pt = NULL |
) | [inline, explicit] |
One argument constructor. If the argument is NULL, we attempt to create the object here.
pt | The DynObj we want to own. |
One argument constructor, instantiating the owned object.
arg | An argument to be passed to the plugin object constructor. |
ScopedDynObj< T >::ScopedDynObj | ( | const char * | lib_name, | |
A | arg | |||
) | [inline, explicit] |
Two argument constructor, instantiating the owned object.
lib_name | Name of library to instantiate the object. | |
arg | An argument to be passed to the plugin object constructor. |
T& ScopedDynObj< T >::operator() | ( | ) | [inline] |
Return a reference. Backward compatibility
bool ScopedDynObj< T >::IsOk | ( | ) | [inline] |
Do we have an object now?
Reimplemented from DynObjPtr< T >.