예제 #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
파일: mesos.hpp 프로젝트: albertleecn/mesos
  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
파일: mesos.hpp 프로젝트: albertleecn/mesos
 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;
 }