示例#1
0
  result_type operator()(const argument_type& containerId) const
  {
    size_t seed = 0;
    boost::hash_combine(seed, containerId.value());

    if (containerId.has_parent()) {
      boost::hash_combine(
          seed,
          std::hash<mesos::ContainerID>()(containerId.parent()));
    }

    return seed;
  }
示例#2
0
  result_type operator()(const argument_type& uri) const
  {
    size_t seed = 0;

    if (uri.extract()) {
      seed += 11;
    }

    if (uri.executable()) {
      seed += 2003;
    }

    boost::hash_combine(seed, uri.value());
    return seed;
  }
示例#3
0
 result_type operator()(const argument_type& taskId) const
 {
   size_t seed = 0;
   boost::hash_combine(seed, taskId.value());
   return seed;
 }
示例#4
0
文件: mesos.hpp 项目: ederst/mesos
 result_type operator()(const argument_type& resourceProviderId) const
 {
   size_t seed = 0;
   boost::hash_combine(seed, resourceProviderId.value());
   return seed;
 }