Ejemplo n.º 1
0
std::size_t cpp_file_hasher::hash(const cpp_file&v) {
    std::size_t seed(0);

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

    combine(seed, hash_std_list_dogen_om_doxygen_command(v.commands()));
    combine(seed, hash_std_list_boost_shared_ptr_dogen_om_cpp_feature_(v.features()));

    return seed;
}
Ejemplo n.º 2
0
std::size_t cpp_abstract_function_hasher::hash(const cpp_abstract_function&v) {
    std::size_t seed(0);

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

    combine(seed, hash_std_list_dogen_om_doxygen_command(v.commands()));
    combine(seed, v.representation_type());
    combine(seed, v.is_inline());
    combine(seed, v.return_type());
    combine(seed, hash_std_list_dogen_om_cpp_argument(v.arguments()));
    combine(seed, v.is_friend());

    return seed;
}