summaryrefslogtreecommitdiffstats
path: root/Project/ControlElement.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-09 19:23:52 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-09 19:23:52 -0300
commit2ef7d2bdf1ca4a6b9ee207e4a43f3116f55c0274 (patch)
tree4b0a9fb363e6745bddf373057ac02a878893c483 /Project/ControlElement.h
parent9fb33a91aa22fbce6d0b74529e07af9f7781b916 (diff)
downloadPSP.git-2ef7d2bdf1ca4a6b9ee207e4a43f3116f55c0274.tar.gz
PSP.git-2ef7d2bdf1ca4a6b9ee207e4a43f3116f55c0274.tar.xz
PSP.git-2ef7d2bdf1ca4a6b9ee207e4a43f3116f55c0274.zip
Several solutions implemented
Diffstat (limited to 'Project/ControlElement.h')
-rw-r--r--Project/ControlElement.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/Project/ControlElement.h b/Project/ControlElement.h
index 3744c6f..cce739a 100644
--- a/Project/ControlElement.h
+++ b/Project/ControlElement.h
@@ -65,11 +65,7 @@ class ControlElement : public Element
virtual bool IsSolved() const { return m_solved; }
virtual void SetSolved(bool solved = true) { m_solved = solved; }
- virtual bool Solve(double input)
- {
- m_output = input * 2.0;
- return true;
- }
+ virtual bool Solve(double input);
virtual double GetOutput() const { return m_output; }
virtual void SetOutput(double output) { m_output = output; }
protected: