Esempio n. 1
0
std::size_t inclusion_lists_hasher::hash(const inclusion_lists&v) {
    std::size_t seed(0);

    combine(seed, hash_std_list_std_string(v.system()));
    combine(seed, hash_std_list_std_string(v.user()));

    return seed;
}
Esempio n. 2
0
std::size_t location_hasher::hash(const location& v) {
    std::size_t seed(0);

    combine(seed, hash_std_list_std_string(v.external_modules()));
    combine(seed, hash_std_list_std_string(v.model_modules()));
    combine(seed, hash_std_list_std_string(v.internal_modules()));
    combine(seed, v.element());

    return seed;
}
Esempio n. 3
0
std::size_t visitor_info_hasher::hash(const visitor_info&v) {
    std::size_t seed(0);

    combine(seed, dynamic_cast<const dogen::cpp::entity&>(v));

    combine(seed, v.name());
    combine(seed, hash_std_list_std_string(v.types()));
    combine(seed, hash_std_list_std_string(v.namespaces()));

    return seed;
}
Esempio n. 4
0
std::size_t registrar_info_hasher::hash(const registrar_info&v) {
    std::size_t seed(0);

    combine(seed, dynamic_cast<const dogen::cpp::entity&>(v));

    combine(seed, hash_std_list_std_string(v.namespaces()));
    combine(seed, hash_std_list_std_string(v.leaves()));
    combine(seed, hash_std_list_std_string(v.model_dependencies()));

    return seed;
}
std::size_t stitching_settings_hasher::hash(const stitching_settings& v) {
    std::size_t seed(0);

    combine(seed, v.stream_variable_name());
    combine(seed, hash_boost_optional_boost_filesystem_path(v.template_path()));
    combine(seed, hash_boost_optional_boost_filesystem_path(v.output_path()));
    combine(seed, hash_boost_optional_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()));

    return seed;
}
Esempio n. 6
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;
}
Esempio n. 7
0
std::size_t nested_type_info_hasher::hash(const nested_type_info&v) {
    std::size_t seed(0);

    combine(seed, v.name());
    combine(seed, v.documentation());
    combine(seed, v.identifiable_name());
    combine(seed, v.complete_name());
    combine(seed, v.complete_identifiable_name());
    combine(seed, v.is_primitive());
    combine(seed, v.is_enumeration());
    combine(seed, v.is_string_like());
    combine(seed, v.is_char_like());
    combine(seed, v.is_int_like());
    combine(seed, v.is_sequence_container());
    combine(seed, v.is_associative_container());
    combine(seed, v.is_smart_pointer());
    combine(seed, v.is_optional_like());
    combine(seed, v.is_variant_like());
    combine(seed, hash_std_list_dogen_cpp_nested_type_info(v.children()));
    combine(seed, hash_std_list_std_string(v.namespaces()));
    combine(seed, v.is_filesystem_path());
    combine(seed, v.is_date());
    combine(seed, v.is_ptime());
    combine(seed, v.is_time_duration());
    combine(seed, v.is_pair());

    return seed;
}
Esempio n. 8
0
std::size_t licence_hasher::hash(const licence&v) {
    std::size_t seed(0);

    combine(seed, hash_std_list_std_string(v.copyright_holders()));
    combine(seed, v.licence_text());

    return seed;
}
Esempio n. 9
0
std::size_t odb_include_regex_option_hasher::hash(const odb_include_regex_option&v) {
    std::size_t seed(0);

    combine(seed, dynamic_cast<const dogen::om::odb_option&>(v));

    combine(seed, hash_std_list_std_string(v.regex()));
    return seed;
}
Esempio n. 10
0
std::size_t source_file_hasher::hash(const source_file&v) {
    std::size_t seed(0);

    combine(seed, v.documentation());
    combine(seed, v.descriptor());
    combine(seed, hash_boost_optional_dogen_cpp_class_info(v.class_info()));
    combine(seed, hash_boost_optional_dogen_cpp_enum_info(v.enum_info()));
    combine(seed, hash_boost_optional_dogen_cpp_exception_info(v.exception_info()));
    combine(seed, hash_boost_optional_dogen_cpp_registrar_info(v.registrar_info()));
    combine(seed, v.header_guard());
    combine(seed, hash_std_list_std_string(v.system_includes()));
    combine(seed, hash_std_list_std_string(v.user_includes()));
    combine(seed, v.file_path().generic_string());
    combine(seed, hash_boost_optional_dogen_cpp_namespace_info(v.namespace_info()));
    combine(seed, hash_boost_optional_dogen_cpp_visitor_info(v.visitor_info()));
    combine(seed, v.relative_path().generic_string());

    return seed;
}
Esempio n. 11
0
std::size_t parent_info_hasher::hash(const parent_info& v) {
    std::size_t seed(0);

    combine(seed, v.name());
    combine(seed, v.qualified_name());
    combine(seed, hash_std_list_std_string(v.namespaces()));
    combine(seed, hash_std_list_dogen_quilt_cpp_formattables_property_info(v.properties()));

    return seed;
}
Esempio n. 12
0
std::size_t cpp_typeref_hasher::hash(const cpp_typeref&v) {
    std::size_t seed(0);

    combine(seed, v.name());
    combine(seed, v.start_at_global_scope());
    combine(seed, hash_std_list_dogen_om_cpp_typeref(v.type_arguments()));
    combine(seed, hash_std_list_std_string(v.namespaces()));

    return seed;
}
Esempio n. 13
0
std::size_t profile_hasher::hash(const profile& v) {
    std::size_t seed(0);

    combine(seed, v.name());
    combine(seed, hash_std_list_std_string(v.parents()));
    combine(seed, hash_std_unordered_set_std_string(v.labels()));
    combine(seed, hash_std_list_dogen_annotations_entry_template(v.templates()));

    return seed;
}
Esempio n. 14
0
std::size_t formatter_properties_hasher::hash(const formatter_properties& v) {
    std::size_t seed(0);

    combine(seed, v.enabled());
    combine(seed, hash_boost_filesystem_path(v.file_path()));
    combine(seed, hash_boost_optional_std_string(v.header_guard()));
    combine(seed, hash_std_list_std_string(v.inclusion_dependencies()));
    combine(seed, hash_std_unordered_set_std_string(v.integrated_facets()));

    return seed;
}
Esempio n. 15
0
std::size_t helper_descriptor_hasher::hash(const helper_descriptor& v) {
    std::size_t seed(0);

    combine(seed, v.family());
    combine(seed, hash_std_list_std_string(v.namespaces()));
    combine(seed, v.name_identifiable());
    combine(seed, v.name_qualified());
    combine(seed, v.name_tree_qualified());
    combine(seed, v.name_tree_identifiable());
    combine(seed, v.is_simple_type());
    combine(seed, v.is_circular_dependency());

    return seed;
}
Esempio n. 16
0
std::size_t helper_descriptor_hasher::hash(const helper_descriptor& v) {
    std::size_t seed(0);

    combine(seed, v.family());
    combine(seed, hash_std_list_std_string(v.namespaces()));
    combine(seed, v.name_identifiable());
    combine(seed, v.name_qualified());
    combine(seed, v.name_tree_qualified());
    combine(seed, v.name_tree_identifiable());
    combine(seed, hash_boost_optional_dogen_quilt_cpp_formattables_streaming_properties(v.streaming_properties()));
    combine(seed, v.is_simple_type());
    combine(seed, v.requires_hashing_helper());
    combine(seed, v.is_circular_dependency());
    combine(seed, v.is_pointer());

    return seed;
}
Esempio n. 17
0
std::size_t class_info_hasher::hash(const class_info& v) {
    std::size_t seed(0);

    combine(seed, dynamic_cast<const dogen::quilt::cpp::formattables::entity&>(v));

    combine(seed, hash_std_list_dogen_quilt_cpp_formattables_property_info(v.properties()));
    combine(seed, hash_std_list_dogen_quilt_cpp_formattables_property_info(v.all_properties()));
    combine(seed, v.requires_stream_manipulators());
    combine(seed, v.requires_manual_move_constructor());
    combine(seed, v.requires_manual_default_constructor());
    combine(seed, hash_std_list_dogen_quilt_cpp_formattables_parent_info(v.parents()));
    combine(seed, v.is_parent());
    combine(seed, v.root_parent_name());
    combine(seed, v.root_parent_name_qualified());
    combine(seed, hash_std_list_std_string(v.leaves()));
    combine(seed, v.is_visitable());
    combine(seed, v.is_immutable());
    combine(seed, v.is_root_parent_visitable());
    combine(seed, v.generation_type());
    combine(seed, v.is_final());

    return seed;
}