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

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

#include <message.h>

Inheritance diagram for Dali::Internal::MessageDoubleBuffered0< T >:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::MessageDoubleBuffered0< T >:
Collaboration graph
[legend]

Public Types

typedef void(T::* MemberFunction )(BufferIndex)
 

Public Member Functions

 MessageDoubleBuffered0 (const T *obj, MemberFunction member)
 Create a message. More...
 
virtual ~MessageDoubleBuffered0 ()
 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
 

Detailed Description

template<typename T>
class Dali::Internal::MessageDoubleBuffered0< T >

Templated message which calls a member function of an object.

This overload passes just the buffer index to the method, no parameters.

Definition at line 551 of file message.h.

Member Typedef Documentation

template<typename T >
typedef void(T::* Dali::Internal::MessageDoubleBuffered0< T >::MemberFunction)(BufferIndex)

Definition at line 555 of file message.h.

Constructor & Destructor Documentation

template<typename T >
Dali::Internal::MessageDoubleBuffered0< T >::MessageDoubleBuffered0 ( const T *  obj,
MemberFunction  member 
)
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.

Definition at line 564 of file message.h.

template<typename T >
virtual Dali::Internal::MessageDoubleBuffered0< T >::~MessageDoubleBuffered0 ( )
inlinevirtual

Virtual destructor.

Definition at line 574 of file message.h.

Member Function Documentation

template<typename T >
virtual void Dali::Internal::MessageDoubleBuffered0< T >::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 581 of file message.h.

References DALI_ASSERT_DEBUG, and Dali::Internal::MessageDoubleBuffered0< T >::memberFunction.

Member Data Documentation

template<typename T >
MemberFunction Dali::Internal::MessageDoubleBuffered0< T >::memberFunction
private

Definition at line 590 of file message.h.

Referenced by Dali::Internal::MessageDoubleBuffered0< T >::Process().

template<typename T >
T* Dali::Internal::MessageDoubleBuffered0< T >::object
private

Definition at line 589 of file message.h.


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