C++ mpi module for stochmagnet_main Package
OMP_Options.h
1 #ifndef OMP_Options_H
2 #define OMP_Options_H
3 
4 //inherits header
5 #include "CORE_Options.h"
6 
7 
8 //core options reader
9 #include "CORE_OptionsList.h"
10 
11 //core IO
12 #include "CORE_IO.h"
13 
21 class OMP_Options : public CORE_Options {
22 
23  //attributes
24 private :
25 
26 
27 
28 public:
29  // CONSTRUCTORS
32  OMP_Options(void) {
33  }
34 
35  // DESTRUCTORS
38  virtual ~OMP_Options(void) {
39  }
40 
41 
42 
43 public :
44  //MEMORY
45 
59  virtual tMemSize getMemorySize() const {
60  return sizeof(*this)+getContentsMemorySize();
61  }
62 
63 
64  //New shared pointer Methods
65  //===========================
66 
70  static inline CORE_UniquePointer<OMP_Options> New() {
71  return CORE_UniquePointer<OMP_Options>(new OMP_Options(),
73  }
74 
75  // MAIN Method
76 
77 public:
78 
79 public:
83  virtual void initManOptions(CORE_OptionsList& options) const {
84 
86 
87  //args parameter
88  options.setManOption("openmp","threads-number","number of threads");
89 
90 
91 
92 
93  }
94 
98  virtual void initOptions(CORE_OptionsList& options) const {
99 
100  CORE_Options::initOptions(options);
101 
102  }
103 
104 
105 
106 
107 };
108 
109 
110 #endif
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:278
This class is an list of options.
Definition: CORE_OptionsList.h:36
void setManOption(const tString &category, const tString &optName, const tString &man)
set man option
Definition: CORE_OptionsList.h:187
This class is the options of the runner.
Definition: CORE_Options.h:21
virtual void initManOptions(CORE_OptionsList &options) const
init the man of the options
Definition: CORE_Options.h:83
virtual void initOptions(CORE_OptionsList &options) const
default initialization of the options
Definition: CORE_Options.h:123
This class is the options of the runner.
Definition: OMP_Options.h:21
OMP_Options(void)
create class instance
Definition: OMP_Options.h:32
virtual void initOptions(CORE_OptionsList &options) const
default initialization of the options
Definition: OMP_Options.h:98
static CORE_UniquePointer< OMP_Options > New()
return a new unique pointer of this
Definition: OMP_Options.h:70
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: OMP_Options.h:59
virtual ~OMP_Options(void)
destroy class instance
Definition: OMP_Options.h:38
virtual void initManOptions(CORE_OptionsList &options) const
init the man of the options
Definition: OMP_Options.h:83