Tizen Native API  6.0
Dali::WeakHandle< T > Class Template Reference

Weak handle for the given type of DALi object. More...

Inheritance diagram for Dali::WeakHandle< T >:
Dali::WeakHandleBase

Public Member Functions

 WeakHandle ()
 WeakHandle (T &handle)
 ~WeakHandle ()
 WeakHandle (const WeakHandle &handle)
WeakHandleoperator= (const WeakHandle &rhs)
bool operator== (const WeakHandle &rhs) const
bool operator!= (const WeakHandle &rhs) const
GetHandle () const

Detailed Description

template<class T>
class Dali::WeakHandle< T >

Weak handle for the given type of DALi object.

Since:
4.0, DALi version 1.2.60
See also:
WeakHandleBase

Constructor & Destructor Documentation

template<class T >
Dali::WeakHandle< T >::WeakHandle ( )

Default constructor which provides an uninitialized Dali::WeakHandleBase.

Since:
4.0, DALi version 1.2.60
template<class T >
Dali::WeakHandle< T >::WeakHandle ( T &  handle)

This constructor creates a weak handle of the DALi object.

Since:
4.0, DALi version 1.2.60
Parameters:
[in]handleA reference to the handle of the DALi object
template<class T >
Dali::WeakHandle< T >::~WeakHandle ( )

Destructor to free resources.

Since:
4.0, DALi version 1.2.60
template<class T >
Dali::WeakHandle< T >::WeakHandle ( const WeakHandle< T > &  handle)

Copy constructor.

Since:
4.0, DALi version 1.2.60
Parameters:
[in]handleA reference to the copied WeakHandleBase

Member Function Documentation

template<class T >
T Dali::WeakHandle< T >::GetHandle ( ) const

Gets the handle to the DALi object.

Since:
4.0, DALi version 1.2.60
Returns:
The handle of the DALi object pointed by this WeakHandleBase or an empty handle if the DALi object doesn't exist
template<class T >
bool Dali::WeakHandle< T >::operator!= ( const WeakHandle< T > &  rhs) const

Inequality operator overload.

Since:
4.0, DALi version 1.2.60
Parameters:
[in]rhsA reference to the compared WeakHandleBase
Returns:
true if the handle points to the different DALi resources
template<class T >
WeakHandle& Dali::WeakHandle< T >::operator= ( const WeakHandle< T > &  rhs)

Assignment operator.

It makes this WeakHandleBase point to the same internal DALi object as the copied WeakHandleBase

Since:
4.0, DALi version 1.2.60
Parameters:
[in]rhsA reference to the copied WeakHandleBase
Returns:
A reference to this WeakHandleBase
template<class T >
bool Dali::WeakHandle< T >::operator== ( const WeakHandle< T > &  rhs) const

Equality operator overload.

Since:
4.0, DALi version 1.2.60
Parameters:
[in]rhsA reference to the compared WeakHandleBase
Returns:
true if the handle points to the same DALi resource, or if both are uninitialized