#define __DALI_INTERNAL_TYPE_REGISTRY_H__
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
// INTERNAL INCLUDES
-#include <dali/devel-api/common/map-wrapper.h>
#include <dali/devel-api/object/csharp-type-info.h>
#include <dali/public-api/object/type-registry.h>
#include <dali/public-api/object/base-handle.h>
* @param [in] name The name type to be registered (must be unique)
* @param [in] baseTypeInfo Type info for its base class
* @param [in] createInstance Instance creation function
- * @param [in] callCreateOnInit If true call createInstance on dali initialisation
* @return true if the name could be registered.
*/
bool Register( const std::string& name, const std::type_info& baseTypeInfo,
- Dali::CSharpTypeInfo::CreateFunction createInstance, bool callCreateOnInit );
+ Dali::CSharpTypeInfo::CreateFunction createInstance );
/*
* Register a signal connector function to a type
private:
/*
- * Map from type name to TypeInfo
+ * Mapping from type name to TypeInfo
*/
- typedef std::map<std::string, Dali::TypeInfo> RegistryMap;
- RegistryMap mRegistryLut;
-
- typedef std::vector<Dali::TypeInfo::CreateFunction> InitFunctions;
- InitFunctions mInitFunctions;
+ std::vector< Dali::TypeInfo > mRegistryLut;
- typedef std::vector<Dali::CSharpTypeInfo::CreateFunction> CSharpInitFunctions;
- CSharpInitFunctions mCSharpInitFunctions;
+ std::vector< Dali::TypeInfo::CreateFunction > mInitFunctions;
private:
TypeRegistry();