コード例 #1
0
ファイル: class_f_hash.cpp プロジェクト: pgannon/dogen
std::size_t class_f_hasher::hash(const class_f& v) {
    std::size_t seed(0);

    combine(seed, hash_std_unordered_map_std_string_std_string(v.prop_0()));
    combine(seed, hash_std_unordered_map_std_string_dogen_test_models_std_model_class_a(v.prop_1()));
    combine(seed, hash_std_unordered_map_dogen_test_models_std_model_class_a_dogen_test_models_std_model_pkg1_class_c(v.prop_2()));

    return seed;
}
コード例 #2
0
std::size_t text_template_hasher::hash(const text_template& v) {
    std::size_t seed(0);

    combine(seed, hash_boost_filesystem_path(v.input_path()));
    combine(seed, hash_boost_filesystem_path(v.output_path()));
    combine(seed, v.properties());
    combine(seed, hash_std_unordered_map_std_string_std_string(v.variables()));
    combine(seed, v.body());

    return seed;
}
コード例 #3
0
std::size_t stitching_properties_hasher::hash(const stitching_properties& v) {
    std::size_t seed(0);

    combine(seed, v.stream_variable_name());
    combine(seed, hash_boost_filesystem_path(v.relative_output_directory()));
    combine(seed, hash_std_list_std_string(v.inclusion_dependencies()));
    combine(seed, hash_std_list_std_string(v.containing_namespaces()));
    combine(seed, v.wale_template());
    combine(seed, hash_std_unordered_map_std_string_std_string(v.wale_kvps()));

    return seed;
}
コード例 #4
0
std::size_t helper_configuration_hasher::hash(const helper_configuration& v) {
    std::size_t seed(0);

    combine(seed, hash_std_unordered_map_std_string_std_string(v.helper_families()));
    return seed;
}