| 140 | } |
| 141 | |
| 142 | virtual void finalize(TemplateList &output) |
| 143 | { |
| 144 | output.clear(); |
| 145 | // For each transform, |
| 146 | for (int i = 0; i < transforms.size(); i++) |
| 147 | { |
| 148 | |
| 149 | // Collect any final templates |
| 150 | TemplateList last_set; |
| 151 | transforms[i]->finalize(last_set); |
| 152 | if (last_set.empty()) |
| 153 | continue; |
| 154 | // Push any templates received through the remaining transforms in the sequence |
| 155 | for (int j = (i+1); j < transforms.size();j++) |
| 156 | { |
| 157 | transforms[j]->projectUpdate(last_set); |
| 158 | } |
| 159 | // append the result to the output set |
| 160 | output.append(last_set); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | void init() |
| 165 | { |
nothing calls this directly
no test coverage detected