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

Specialization for owner-pointer. More...

#include <double-buffered.h>

Classes

class  Setter
 Class that deals with setting a value. More...
 

Public Member Functions

 DoubleBuffered ()
 
 DoubleBuffered (T *val)
 
 ~DoubleBuffered ()
 
void Set (size_t i, T *value)
 
Setter operator[] (size_t i)
 
const T * operator[] (size_t i) const
 
void CopyPrevious (size_t i)
 Auto-age the property: if it was set the previous frame, then copy the value into the current frame's buffer. More...
 

Private Member Functions

 DoubleBuffered (const DoubleBuffered &)
 
DoubleBufferedoperator= (const DoubleBuffered &rhs)
 

Private Attributes

T * mValue1
 
T * mValue2
 

Detailed Description

template<typename T>
class Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >

Specialization for owner-pointer.

This class takes ownership of the pointers and releases the memory when the pointer is no longer used by either buffer

Definition at line 94 of file double-buffered.h.

Constructor & Destructor Documentation

template<typename T >
Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::DoubleBuffered ( )
inline

Definition at line 143 of file double-buffered.h.

template<typename T >
Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::DoubleBuffered ( T *  val)
inline

Definition at line 149 of file double-buffered.h.

template<typename T >
Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::~DoubleBuffered ( )
inline
template<typename T >
Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::DoubleBuffered ( const DoubleBuffered< OwnerPointer< T > > &  )
private

Member Function Documentation

template<typename T >
void Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::CopyPrevious ( size_t  i)
inline

Auto-age the property: if it was set the previous frame, then copy the value into the current frame's buffer.

Definition at line 192 of file double-buffered.h.

References DALI_ASSERT_DEBUG, Dali::Internal::SceneGraph::DoubleBuffered< T >::mValue1, and Dali::Internal::NUM_SCENE_GRAPH_BUFFERS.

template<typename T >
DoubleBuffered& Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::operator= ( const DoubleBuffered< OwnerPointer< T > > &  rhs)
private
template<typename T >
Setter Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::operator[] ( size_t  i)
inline
template<typename T >
const T* Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::operator[] ( size_t  i) const
inline
template<typename T >
void Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::Set ( size_t  i,
T *  value 
)
inline

Member Data Documentation

template<typename T >
T* Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::mValue1
private

Definition at line 217 of file double-buffered.h.

template<typename T >
T* Dali::Internal::SceneGraph::DoubleBuffered< OwnerPointer< T > >::mValue2
private

Definition at line 218 of file double-buffered.h.


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