Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Private Attributes
Dali::Internal::MessageDoubleBuffered2< T, P2, P3 > Class Template Reference

Templated message which calls a member function of an object. More...

#include <message.h>

Inheritance diagram for Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >:
Collaboration graph
[legend]

Public Types

typedef void(T::* MemberFunction )(BufferIndex, typename ParameterType< P2 >::PassingType, typename ParameterType< P3 >::PassingType)
 

Public Member Functions

 MessageDoubleBuffered2 (const T *obj, MemberFunction member, typename ParameterType< P2 >::PassingType p2, typename ParameterType< P3 >::PassingType p3)
 Create a message. More...
 
virtual ~MessageDoubleBuffered2 ()
 Virtual destructor. More...
 
virtual void Process (BufferIndex bufferIndex)
 Called to process the message. More...
 
- Public Member Functions inherited from Dali::Internal::MessageBase
 MessageBase ()
 Construct the message base. More...
 
virtual ~MessageBase ()
 Virtual destructor. More...
 

Private Attributes

T * object
 
MemberFunction memberFunction
 
ParameterType< P2 >::HolderType param2
 
ParameterType< P3 >::HolderType param3
 

Detailed Description

template<typename T, typename P2, typename P3>
class Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >

Templated message which calls a member function of an object.

This overload passes two value-types to set double-buffered properties. Template parameters need to match the MemberFunction! The message will contain copy of the value (in case of & or const&)

Definition at line 661 of file message.h.

Member Typedef Documentation

template<typename T , typename P2 , typename P3 >
typedef void(T::* Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::MemberFunction)(BufferIndex, typename ParameterType< P2 >::PassingType, typename ParameterType< P3 >::PassingType)

Definition at line 665 of file message.h.

Constructor & Destructor Documentation

template<typename T , typename P2 , typename P3 >
Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::MessageDoubleBuffered2 ( const T *  obj,
MemberFunction  member,
typename ParameterType< P2 >::PassingType  p2,
typename ParameterType< P3 >::PassingType  p3 
)
inline

Create a message.

Note
The object is expected to be const in the thread which sends this message. However it can be modified when Process() is called in a different thread.
Parameters
[in]objThe object.
[in]memberThe member function of the object.
[in]p2The second parameter to pass to the function.
[in]p3The third parameter to pass to the function.

Definition at line 679 of file message.h.

template<typename T , typename P2 , typename P3 >
virtual Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::~MessageDoubleBuffered2 ( )
inlinevirtual

Virtual destructor.

Definition at line 694 of file message.h.

Member Function Documentation

template<typename T , typename P2 , typename P3 >
virtual void Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::Process ( BufferIndex  bufferIndex)
inlinevirtual

Called to process the message.

Parameters
[in]bufferIndexThe current update/render buffer index (depending on which thread processes the message).

Implements Dali::Internal::MessageBase.

Definition at line 701 of file message.h.

References DALI_ASSERT_DEBUG, Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::memberFunction, Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::param2, Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::param3, and Dali::Internal::ComplexType< T >::PassObject().

Here is the call graph for this function:

Member Data Documentation

template<typename T , typename P2 , typename P3 >
MemberFunction Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::memberFunction
private
template<typename T , typename P2 , typename P3 >
T* Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::object
private

Definition at line 712 of file message.h.

template<typename T , typename P2 , typename P3 >
ParameterType< P2 >::HolderType Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::param2
private
template<typename T , typename P2 , typename P3 >
ParameterType< P3 >::HolderType Dali::Internal::MessageDoubleBuffered2< T, P2, P3 >::param3
private

The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali