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

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

#include <message.h>

Inheritance diagram for Dali::Internal::MessageValue1< T, P >:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::MessageValue1< T, P >:
Collaboration graph
[legend]

Public Types

typedef void(T::* MemberFunction )(typename ParameterType< P >::PassingType)
 

Public Member Functions

 MessageValue1 (const T *obj, MemberFunction member, typename ParameterType< P >::PassingType p1)
 Create a message. More...
 
virtual ~MessageValue1 ()
 Virtual destructor. More...
 
virtual void Process (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< P >::HolderType param1
 

Detailed Description

template<typename T, typename P>
class Dali::Internal::MessageValue1< T, P >

Templated message which calls a member function of an object.

This overload passes one value-type parameter. Template parameters need to match the MemberFunction! The message will contain copy of the value (in case of & or const&)

Definition at line 120 of file message.h.

Member Typedef Documentation

template<typename T, typename P>
typedef void(T::* Dali::Internal::MessageValue1< T, P >::MemberFunction)(typename ParameterType< P >::PassingType)

Definition at line 124 of file message.h.

Constructor & Destructor Documentation

template<typename T, typename P>
Dali::Internal::MessageValue1< T, P >::MessageValue1 ( const T *  obj,
MemberFunction  member,
typename ParameterType< P >::PassingType  p1 
)
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]p1The first value-type parameter to pass to the member function.

Definition at line 134 of file message.h.

template<typename T, typename P>
virtual Dali::Internal::MessageValue1< T, P >::~MessageValue1 ( )
inlinevirtual

Virtual destructor.

Definition at line 147 of file message.h.

Member Function Documentation

template<typename T, typename P>
virtual void Dali::Internal::MessageValue1< T, P >::Process ( 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 154 of file message.h.

References DALI_ASSERT_DEBUG, Dali::Internal::MessageValue1< T, P >::memberFunction, and Dali::Internal::MessageValue1< T, P >::param1.

Member Data Documentation

template<typename T, typename P>
MemberFunction Dali::Internal::MessageValue1< T, P >::memberFunction
private

Definition at line 163 of file message.h.

Referenced by Dali::Internal::MessageValue1< T, P >::Process().

template<typename T, typename P>
T* Dali::Internal::MessageValue1< T, P >::object
private

Definition at line 162 of file message.h.

template<typename T, typename P>
ParameterType< P >::HolderType Dali::Internal::MessageValue1< T, P >::param1
private

Definition at line 164 of file message.h.

Referenced by Dali::Internal::MessageValue1< T, P >::Process().


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