| 83 | } |
| 84 | |
| 85 | std::shared_ptr<ColumnPath> ColumnPath::extend(const std::string& node_name) const { |
| 86 | std::vector<std::string> path; |
| 87 | path.reserve(path_.size() + 1); |
| 88 | path.resize(path_.size() + 1); |
| 89 | std::copy(path_.cbegin(), path_.cend(), path.begin()); |
| 90 | path[path_.size()] = node_name; |
| 91 | |
| 92 | return std::make_shared<ColumnPath>(std::move(path)); |
| 93 | } |
| 94 | |
| 95 | std::string ColumnPath::ToDotString() const { |
| 96 | std::stringstream ss; |