MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / currentStep

Method currentStep

src/utilities/filetypes/WorkflowJSON.cpp:222–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 }
221
222 boost::optional<WorkflowStep> WorkflowJSON_Impl::currentStep() const {
223 unsigned index = currentStepIndex();
224 std::vector<WorkflowStep> steps = this->workflowSteps();
225
226 if (index >= steps.size()) {
227 return boost::none;
228 }
229
230 return steps[index];
231 }
232
233 bool WorkflowJSON_Impl::incrementStep() {
234 unsigned index = currentStepIndex();

Callers 2

incrementStepMethod · 0.80
prepareForMeasureRunMethod · 0.80

Calls 2

workflowStepsMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected