Base Framework
Public Member Functions | List of all members
Owner< TYPE > Class Template Reference

Owner pointer. More...

#include <base/Owner.h>

Inherits AutomationObject.

Public Member Functions

 Owner (const Owner &value) noexcept
 
 Owner (TYPE *_object) noexcept
 
Owneroperator= (const Owner &value) noexcept
 
Owneroperator= (TYPE *object) noexcept
 
TYPE * detach () noexcept
 
bool isValid () const noexcept
 
TYPE & operator* ()
 
const TYPE & operator* () const
 
TYPE * operator-> ()
 
const TYPE * operator-> () const
 
void destroy ()
 
 ~Owner ()
 

Detailed Description

template<class TYPE>
class Owner< TYPE >

Owner pointer.

Owner automation pointer. Not MT-safe.

Version
1.0

Constructor & Destructor Documentation

◆ ~Owner()

template<class TYPE >
Owner< TYPE >::~Owner ( )
inline

Destroys the object.

Member Function Documentation

◆ destroy()

template<class TYPE >
void Owner< TYPE >::destroy ( )
inline

Destroys the object.

◆ detach()

template<class TYPE >
TYPE* Owner< TYPE >::detach ( )
inlinenoexcept

Detaches the object.

◆ isValid()

template<class TYPE >
bool Owner< TYPE >::isValid ( ) const
inlinenoexcept

Returns true if the object is valid.