Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
Dali::Internal::Adaptor::SingletonService Class Reference

Stub for the SingletonService. More...

#include <singleton-service-impl.h>

Inheritance diagram for Dali::Internal::Adaptor::SingletonService:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::SingletonService:
Collaboration graph
[legend]

Public Member Functions

void Register (const std::type_info &info, BaseHandle singleton)
  More...
 
void UnregisterAll ()
  More...
 
BaseHandle GetSingleton (const std::type_info &info) const
  More...
 
void Register (const std::type_info &info, BaseHandle singleton)
 
void UnregisterAll ()
 
BaseHandle GetSingleton (const std::type_info &info) const
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static Dali::SingletonService New ()
 Create a SingletonService. More...
 
static Dali::SingletonService Get ()
  More...
 
static Dali::SingletonService New ()
 
static Dali::SingletonService Get ()
 

Private Types

typedef std::pair< std::string,
BaseHandle
SingletonPair
 
typedef std::map< std::string,
BaseHandle
SingletonContainer
 
typedef
SingletonContainer::const_iterator 
SingletonConstIter
 
typedef std::pair< std::string,
BaseHandle
SingletonPair
 
typedef std::map< std::string,
BaseHandle
SingletonContainer
 
typedef
SingletonContainer::const_iterator 
SingletonConstIter
 

Private Member Functions

 SingletonService ()
 Private Constructor. More...
 
virtual ~SingletonService ()
 Virtual Destructor. More...
 
 SingletonService (const SingletonService &)
 
SingletonServiceoperator= (SingletonService &)
 
 SingletonService ()
 
virtual ~SingletonService ()
 
 SingletonService (const SingletonService &)
 
SingletonServiceoperator= (SingletonService &)
 

Private Attributes

SingletonContainer mSingletonContainer
 The container to look up singleton by its type name. More...
 

Static Private Attributes

static Dali::SingletonService mToolkitSingletonService
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 

Detailed Description

Stub for the SingletonService.

Definition at line 37 of file singleton-service-impl.h.

Member Typedef Documentation

typedef SingletonContainer::const_iterator Dali::Internal::Adaptor::SingletonService::SingletonConstIter
private

Definition at line 58 of file toolkit-singleton-service.cpp.

typedef SingletonContainer::const_iterator Dali::Internal::Adaptor::SingletonService::SingletonConstIter
private

Definition at line 89 of file singleton-service-impl.h.

Definition at line 57 of file toolkit-singleton-service.cpp.

Definition at line 88 of file singleton-service-impl.h.

Definition at line 56 of file toolkit-singleton-service.cpp.

Definition at line 87 of file singleton-service-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::SingletonService::SingletonService ( )
private
Dali::Internal::Adaptor::SingletonService::~SingletonService ( )
privatevirtual
Dali::Internal::Adaptor::SingletonService::SingletonService ( const SingletonService )
private
Dali::Internal::Adaptor::SingletonService::SingletonService ( )
private
virtual Dali::Internal::Adaptor::SingletonService::~SingletonService ( )
privatevirtual
Dali::Internal::Adaptor::SingletonService::SingletonService ( const SingletonService )
private

Member Function Documentation

static Dali::SingletonService Dali::Internal::Adaptor::SingletonService::Get ( )
static
Dali::SingletonService Dali::Internal::Adaptor::SingletonService::Get ( )
static
BaseHandle Dali::Internal::Adaptor::SingletonService::GetSingleton ( const std::type_info &  info) const
BaseHandle Dali::Internal::Adaptor::SingletonService::GetSingleton ( const std::type_info &  info) const

Definition at line 87 of file singleton-service-impl.cpp.

References mSingletonContainer.

static Dali::SingletonService Dali::Internal::Adaptor::SingletonService::New ( )
static
Dali::SingletonService Dali::Internal::Adaptor::SingletonService::New ( )
static

Create a SingletonService.

This should only be called once by the Application class.

Returns
A newly created SingletonService.

Definition at line 57 of file singleton-service-impl.cpp.

Referenced by Dali::SingletonService::New().

Here is the caller graph for this function:

SingletonService& Dali::Internal::Adaptor::SingletonService::operator= ( SingletonService )
private
SingletonService& Dali::Internal::Adaptor::SingletonService::operator= ( SingletonService )
private
void Dali::Internal::Adaptor::SingletonService::Register ( const std::type_info &  info,
BaseHandle  singleton 
)
void Dali::Internal::Adaptor::SingletonService::Register ( const std::type_info &  info,
BaseHandle  singleton 
)

Definition at line 73 of file singleton-service-impl.cpp.

References DALI_LOG_SINGLETON_SERVICE, and mSingletonContainer.

void Dali::Internal::Adaptor::SingletonService::UnregisterAll ( )
void Dali::Internal::Adaptor::SingletonService::UnregisterAll ( )

Definition at line 82 of file singleton-service-impl.cpp.

References mSingletonContainer.

Member Data Documentation

SingletonContainer Dali::Internal::Adaptor::SingletonService::mSingletonContainer
private

The container to look up singleton by its type name.

Definition at line 91 of file singleton-service-impl.h.

Referenced by GetSingleton(), Register(), and UnregisterAll().

Dali::SingletonService Dali::Internal::Adaptor::SingletonService::mToolkitSingletonService
staticprivate

Definition at line 62 of file toolkit-singleton-service.cpp.


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