ROL
ROL_ScalarController.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Rapid Optimization Library (ROL) Package
4 //
5 // Copyright 2014 NTESS and the ROL contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef ROL_SCALARCONTROLLER_H
11 #define ROL_SCALARCONTROLLER_H
12 
13 #include "ROL_VectorController.hpp"
14 #include "ROL_SingletonVector.hpp"
15 
16 namespace ROL {
17 
18 template <class Real, class Key=std::vector<Real>>
19 class ScalarController : public VectorController<Real,Key> {
20 public:
21  ScalarController(void);
22 
23  bool get(Real &x, const Key &param);
24 
25  void set(Real x, const Key &param);
26 
27 }; // class ScalarController
28 
29 } // namespace ROL
30 
32 
33 #endif
void set(Real x, const Key &param)