Tizen Native API  5.5
Dali::Signal< void(Arg0, Arg1, Arg2) > Class Template Reference

A template for Signals with 3 parameters. More...

Public Member Functions

 Signal ()
 Default constructor.
 ~Signal ()
 Non-virtual destructor.
bool Empty () const
 Queries whether there are any connected slots.
std::size_t GetConnectionCount () const
 Queries the number of slots.
void Connect (void(*func)(Arg0 arg0, Arg1 arg1, Arg2 arg2))
 Connects a function.
void Disconnect (void(*func)(Arg0 arg0, Arg1 arg1, Arg2 arg2))
 Disconnects a function.
template<class X >
void Connect (X *obj, void(X::*func)(Arg0 arg0, Arg1 arg1, Arg2 arg2))
 Connects a member function.
template<class X >
void Disconnect (X *obj, void(X::*func)(Arg0 arg0, Arg1 arg1, Arg2 arg2))
 Disconnects a member function.
template<class X >
void Connect (SlotDelegate< X > &delegate, void(X::*func)(Arg0 arg0, Arg1 arg1, Arg2 arg2))
 Connects a member function.
template<class X >
void Disconnect (SlotDelegate< X > &delegate, void(X::*func)(Arg0 arg0, Arg1 arg1, Arg2 arg2))
 Disconnects a member function.
template<class X >
void Connect (ConnectionTrackerInterface *connectionTracker, const X &func)
 Connects a function object.
void Connect (ConnectionTrackerInterface *connectionTracker, FunctorDelegate *delegate)
 Connects a function object using FunctorDelegate.
void Emit (Arg0 arg0, Arg1 arg1, Arg2 arg2)
 Emits the signal.

Detailed Description

template<typename Arg0, typename Arg1, typename Arg2>
class Dali::Signal< void(Arg0, Arg1, Arg2) >

A template for Signals with 3 parameters.

Since:
3.0, DALi version 1.0.0

Constructor & Destructor Documentation

template<typename Arg0 , typename Arg1 , typename Arg2 >
Dali::Signal< void(Arg0, Arg1, Arg2) >::Signal ( )

Default constructor.

Since:
3.0, DALi version 1.0.0
template<typename Arg0 , typename Arg1 , typename Arg2 >
Dali::Signal< void(Arg0, Arg1, Arg2) >::~Signal ( )

Non-virtual destructor.

Since:
3.0, DALi version 1.0.0

Member Function Documentation

template<typename Arg0 , typename Arg1 , typename Arg2 >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Connect ( void(*)(Arg0 arg0, Arg1 arg1, Arg2 arg2)  func)

Connects a function.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]funcThe function to connect
template<typename Arg0 , typename Arg1 , typename Arg2 >
template<class X >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Connect ( X *  obj,
void(X::*)(Arg0 arg0, Arg1 arg1, Arg2 arg2)  func 
)

Connects a member function.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]objAn object which must implement the ConnectionTrackerInterface
[in]funcThe member function to connect
template<typename Arg0 , typename Arg1 , typename Arg2 >
template<class X >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Connect ( SlotDelegate< X > &  delegate,
void(X::*)(Arg0 arg0, Arg1 arg1, Arg2 arg2)  func 
)

Connects a member function.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]delegateA slot delegate
[in]funcThe member function to connect
template<typename Arg0 , typename Arg1 , typename Arg2 >
template<class X >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Connect ( ConnectionTrackerInterface connectionTracker,
const X &  func 
)

Connects a function object.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]connectionTrackerA connection tracker which can be used to disconnect
[in]funcThe function object to copy
template<typename Arg0 , typename Arg1 , typename Arg2 >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Connect ( ConnectionTrackerInterface connectionTracker,
FunctorDelegate delegate 
)

Connects a function object using FunctorDelegate.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]connectionTrackerA connection tracker which can be used to disconnect
[in]delegateA newly allocated FunctorDelegate (ownership is taken)
template<typename Arg0 , typename Arg1 , typename Arg2 >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Disconnect ( void(*)(Arg0 arg0, Arg1 arg1, Arg2 arg2)  func)

Disconnects a function.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]funcThe function to disconnect
template<typename Arg0 , typename Arg1 , typename Arg2 >
template<class X >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Disconnect ( X *  obj,
void(X::*)(Arg0 arg0, Arg1 arg1, Arg2 arg2)  func 
)

Disconnects a member function.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]objAn object which must implement the ConnectionTrackerInterface
[in]funcThe member function to disconnect
template<typename Arg0 , typename Arg1 , typename Arg2 >
template<class X >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Disconnect ( SlotDelegate< X > &  delegate,
void(X::*)(Arg0 arg0, Arg1 arg1, Arg2 arg2)  func 
)

Disconnects a member function.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]delegateA slot delegate
[in]funcThe member function to disconnect
template<typename Arg0 , typename Arg1 , typename Arg2 >
void Dali::Signal< void(Arg0, Arg1, Arg2) >::Emit ( Arg0  arg0,
Arg1  arg1,
Arg2  arg2 
)

Emits the signal.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]arg0The first value to pass to callbacks
[in]arg1The second value to pass to callbacks
[in]arg2The third value to pass to callbacks
template<typename Arg0 , typename Arg1 , typename Arg2 >
bool Dali::Signal< void(Arg0, Arg1, Arg2) >::Empty ( ) const

Queries whether there are any connected slots.

Since:
3.0, DALi version 1.0.0
Returns:
True if there are any slots connected to the signal
template<typename Arg0 , typename Arg1 , typename Arg2 >
std::size_t Dali::Signal< void(Arg0, Arg1, Arg2) >::GetConnectionCount ( ) const

Queries the number of slots.

Since:
3.0, DALi version 1.0.0
Returns:
The number of slots connected to this signal