2 #include <samchon/API.hpp> 4 #include <samchon/HashMap.hpp> 5 #include <samchon/protocol/Entity.hpp> 13 class DistributedProcess;
17 class DistributedSystemArrayBase
20 HashMap<std::string, std::shared_ptr<DistributedProcess>> process_map_;
33 auto getProcessMap() const -> const HashMap<
std::
string,
std::shared_ptr<DistributedProcess>>&
45 auto hasProcess(
const std::string &name)
const ->
bool 47 return process_map_.has(name);
57 auto getProcess(
const std::string &name)
const -> std::shared_ptr<DistributedProcess>
59 return process_map_.get(name);
68 void insertProcess(std::shared_ptr<DistributedProcess> role)
70 process_map_.emplace(((protocol::Entity<std::string>*)role.get())->key(), role);
78 void eraseProcess(
const std::string &name)
80 process_map_.erase(name);