MCPcopy Create free account
hub / github.com/JSBSim-Team/jsbsim / ClearControls

Method ClearControls

src/initialization/FGTrimAnalysis.cpp:672–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
671
672void FGTrimAnalysis::ClearControls(void) {
673
674 FGTrimAnalysisControl* tac;
675
676 mode=taCustom;
677 vector<FGTrimAnalysisControl*>::iterator iControls;
678 iControls = vTrimAnalysisControls.begin();
679 while (iControls != vTrimAnalysisControls.end()) {
680 tac=*iControls;
681 delete tac;
682
683 iControls++;
684 }
685
686 vTrimAnalysisControls.clear();
687
688}
689
690//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
691

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected