C++ mpi module for stochmagnet_main Package
MPI_Options.h
1 #ifndef MPI_Options_H
2 #define MPI_Options_H
3 
4 //inherits header
5 #include "CORE_Options.h"
6 
7 
8 
16 class MPI_Options : public virtual CORE_Options {
17 
18  //attributes
19 private :
20 
21 
22 
23 public:
24  // CONSTRUCTORS
27  MPI_Options(void) {
28  }
29 
30  // DESTRUCTORS
33  virtual ~MPI_Options(void) {
34  }
35 
36 
37 
38 public :
39  //MEMORY
40 
54  virtual tMemSize getMemorySize() const {
55  return sizeof(*this)+getContentsMemorySize();
56  }
57 
58 
59  //New shared pointer Methods
60  //===========================
61 
65  static inline CORE_UniquePointer<MPI_Options> New() {
66  return CORE_UniquePointer<MPI_Options>(new MPI_Options(),
68  }
69 
70  // MAIN Method
71 
72 public:
73 
74 public:
78  virtual void initManOptions(CORE_OptionsList& options) const {
80 
81  //log parameters
82  options.setManOption("log","has-log-per-core","{true,false} one log per core");
83 
84 
85 
86  }
87 
91  virtual void initOptions(CORE_OptionsList& options) const {
92 
94 
95 
96 
97  //log parameters
98  options.setOptionValue("has-log-per-core",false);
99 
100 
101  }
102 
103 
104 };
105 
106 
107 #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 setOptionValue(const tString &optName, const tBoolean &value)
set option
Definition: CORE_OptionsList.h:194
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: MPI_Options.h:16
virtual ~MPI_Options(void)
destroy class instance
Definition: MPI_Options.h:33
virtual void initOptions(CORE_OptionsList &options) const
default initialization of the options
Definition: MPI_Options.h:91
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: MPI_Options.h:54
static CORE_UniquePointer< MPI_Options > New()
return a new unique pointer of this
Definition: MPI_Options.h:65
MPI_Options(void)
create class instance
Definition: MPI_Options.h:27
virtual void initManOptions(CORE_OptionsList &options) const
init the man of the options
Definition: MPI_Options.h:78