예제 #1
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;
}
예제 #2
0
std::size_t visitor_info_hasher::hash(const visitor_info& v) {
    std::size_t seed(0);

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

    combine(seed, hash_std_list_dogen_cpp_formattables_visited_type_info(v.types()));
    return seed;
}