compiler/cpp/src/generate/t_hs_generator.cc
/**
 * Serializes the members of a map.
 *
 */
Serializes the members of a map.
Serializes the members of a map .
void t_hs_generator::generate_serialize_map_element(ofstream &out,
                                                    t_map* tmap,
                                                    string kiter,
                                                    string viter) {
  t_field kfield(tmap->get_key_type(), kiter);
  out << "do {";
  generate_serialize_field(out, &kfield);
  out << ";";
  t_field vfield(tmap->get_val_type(), viter);
  generate_serialize_field(out, &vfield);
  out << "}";
}
void t_hs_generator :: generate_serialize_map_element ( ofstream & out , t_map * tmap , string kiter , string viter ) { t_field kfield ( tmap -> get_key_type ( ) , kiter ) ; out << " " ; generate_serialize_field ( out , & kfield ) ; out << " " ; t_field vfield ( tmap -> get_val_type ( ) , viter ) ; generate_serialize_field ( out , & vfield ) ; out << " " ; }
Serializes the members of a map.
Serializes the members of a map .