Return the first leaf stage of a pipeline, or nullptr if the pipeline is empty.
| 125 | // Return the first leaf stage of a pipeline, or nullptr if the pipeline |
| 126 | // is empty. |
| 127 | Stage* getStage() const |
| 128 | { |
| 129 | const auto& llist = leaves(); |
| 130 | return llist.size() ? llist[0] : nullptr; |
| 131 | } |
| 132 | |
| 133 | // Set the log to be available to stages. |
| 134 | void setLog(const LogPtr& log); |
no test coverage detected