NOMAD Source  Version 4.0.0 Beta
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MadsIterationUtils.hpp
Go to the documentation of this file.
1 
2 #ifndef __NOMAD400_MADSITERATIONUTILS__
3 #define __NOMAD400_MADSITERATIONUTILS__
4 
5 #include <stdexcept>
6 
7 #include "../../Algos/Step.hpp"
8 #include "../../Algos/IterationUtils.hpp"
9 
10 
11 #include "../../nomad_nsbegin.hpp"
12 
13 
14 /// Class of utils for MADS iterations.
15 /**
16  This class has no utility for now.
17  */
19 {
20 public:
21  /// Constructor
22  /**
23  \param parentStep The calling iteration Step.
24  */
25  explicit MadsIterationUtils(const Step* parentStep)
26  : IterationUtils(parentStep)
27  {
28  init();
29  }
30 
31 private:
32 
33  /// Helper for constructor
34  /**
35  Makes sure that there is a MadsIteration among the ancestors.
36  */
37  void init();
38 };
39 
40 #include "../../nomad_nsend.hpp"
41 
42 #endif // __NOMAD400_MADSITERATIONUTILS__
Class of utils for MADS iterations.
MadsIterationUtils(const Step *parentStep)
Constructor.
Class of utils (attributes and helper functions) for some phases of an algorithm that involve Iterati...
Base class of all types of steps (Iteration, Termination, Initialization, Poll, Mads,...).
Definition: Step.hpp:24
void init()
Helper for constructor.