#define DALI_INTERNAL_SCENE_GRAPH_UNIFORM_MAP_H
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
* limitations under the License.
*/
+// EXTERNAL INCLUDES
+#include <string>
+#include <cstdint> // uint32_t
+
+// INTERNAL INCLUDES
#include <dali/devel-api/common/hash.h>
#include <dali/devel-api/common/owner-container.h>
-#include <string>
namespace Dali
{
class UniformMap
{
public:
+ using SizeType = uint32_t;
+
class Observer
{
public:
+
+ /**
+ * Inform observer that uniform mappings have been changed
+ * @param mappings
+ */
virtual void UniformMappingsChanged(const UniformMap& mappings) = 0;
+
+ protected:
+
+ /**
+ * Virtual destructor, no deletion through this interface
+ */
+ virtual ~Observer() {}
};
/**
* Get the count of uniforms in the map
* @return The number of uniform mappings
*/
- unsigned int Count() const;
+ SizeType Count() const;
/**
* @pre index must be in the range 0 :: Count()-1
* @param[in] index The index of the element to fetch
* @return reference to the element in the map
*/
- const UniformPropertyMapping& operator[]( unsigned int index ) const;
+ const UniformPropertyMapping& operator[]( SizeType index ) const;
private:
/**