17 #ifndef __ISOLATOR_DOCKER_VOLUME_STATE_HPP__ 18 #define __ISOLATOR_DOCKER_VOLUME_STATE_HPP__ 20 #include <boost/functional/hash.hpp> 23 #include "slave/containerizer/mesos/isolators/docker/volume/state.pb.h" 29 inline bool operator==(
const DockerVolume& left,
const DockerVolume& right)
31 return (left.driver() == right.driver()) && (left.name() == right.name());
42 struct hash<
mesos::internal::slave::DockerVolume>
48 result_type
operator()(
const argument_type& volume)
const 51 boost::hash_combine(seed, std::hash<std::string>()(volume.driver()));
52 boost::hash_combine(seed, std::hash<std::string>()(volume.name()));
59 #endif // __ISOLATOR_DOCKER_VOLUME_STATE_HPP__ bool operator==(const DockerVolume &left, const DockerVolume &right)
Definition: state.hpp:29
mesos::internal::slave::DockerVolume argument_type
Definition: state.hpp:46
Definition: type_utils.hpp:619
result_type operator()(const argument_type &volume) const
Definition: state.hpp:48
Definition: attributes.hpp:24
size_t result_type
Definition: state.hpp:44