Add Internal::IndexedMap
Make IndexedMap that key can be std::uint32_t and Internal::ConstString
IndexedMap can only do Register + Get.
We can check unique registration by this API.
IndexedMap use iterator as std::vector<std::pair<KeyType, ElementType>>::iterator.
Get API return iterator that key contained.
If found failed, return End() iterator.
Internally, we make it sorted key-index-element container.
It can search key by binary search. and less element copy action.
(ConstString can be convert const char* == size_t which can comparable)
Time complexity is O(|Element count|) for Register and
O(log|Element count|) for Get
Change some std::vector container as IndexedConstStringMap and IndexedIntegerMap
at type-info and type-register.
type-info is very important area of DALi engine.
So I append some define blocks when we meet some strange problems in future.
It will be remove when this patch is safe enough.
Change-Id: I7ad2e1a4776a4acedb4632053419b4fdcfa043bb
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>