* limitations under the License.
*/
+#include "bundle-internal.h"
+
#include <errno.h>
#include <glib.h>
#include "include/bundle.h"
-#include "bundle-internal.h"
#include "exception-internal.h"
namespace tizen_base {
return BUNDLE_ERROR_NONE;
}
-const std::map<std::string, std::shared_ptr<KeyInfo>>& Bundle::GetMap() {
+const std::unordered_map<std::string, std::shared_ptr<KeyInfo>>&
+Bundle::GetMap() const {
return map_;
}
#define BUNDLE_INTERNAL_H_
#include <list>
-#include <map>
#include <memory>
#include <string>
+#include <unordered_map>
#include <vector>
#include "include/bundle.h"
unsigned char* Encode();
unsigned char* EncodeRaw(int* size);
int DecodeRaw(unsigned char* raw, int size);
- const std::map<std::string, std::shared_ptr<KeyInfo>>& GetMap();
+ const std::unordered_map<std::string, std::shared_ptr<KeyInfo>>& GetMap() const;
std::vector<std::string> Export();
private:
int Import(int argc, char** argv);
private:
- std::map<std::string, std::shared_ptr<KeyInfo>> map_;
+ std::unordered_map<std::string, std::shared_ptr<KeyInfo>> map_;
std::list<std::shared_ptr<KeyInfo>> list_;
};