| 522 | } |
| 523 | |
| 524 | std::vector<std::string> FieldNames() { |
| 525 | std::vector<std::string> names(name_to_index_.size()); |
| 526 | |
| 527 | for (auto kv : name_to_index_) { |
| 528 | names[kv.second] = kv.first; |
| 529 | } |
| 530 | return names; |
| 531 | } |
| 532 | |
| 533 | virtual void Reset() { |
| 534 | name_to_index_.clear(); |