queso-0.53.0
Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
QUESO::McOptionsValues Class Reference

This class provides options for the Monte Carlo sequence generator if no input file is available. More...

#include <MonteCarloSGOptions.h>

Collaboration diagram for QUESO::McOptionsValues:
Collaboration graph
[legend]

Public Member Functions

Constructor/Destructor methods
 McOptionsValues ()
 Default constructor. More...
 
 McOptionsValues (const BaseEnvironment *env, const char *prefix)
 Prefix constructor for reading input options from a file. More...
 
 McOptionsValues (const McOptionsValues &src)
 Copy constructor. More...
 
virtual ~McOptionsValues ()
 Destructor. More...
 
Set methods
McOptionsValuesoperator= (const McOptionsValues &rhs)
 Assignment operator; it copies rhs to this. More...
 

Public Attributes

std::string m_prefix
 
std::string m_help
 If non-empty string, print options and values to output file. More...
 
std::string m_dataOutputFileName
 
std::set< unsigned int > m_dataOutputAllowedSet
 
unsigned int m_pseqDataOutputPeriod
 
std::string m_pseqDataOutputFileName
 
std::string m_pseqDataOutputFileType
 
std::set< unsigned int > m_pseqDataOutputAllowedSet
 
std::string m_qseqDataInputFileName
 
std::string m_qseqDataInputFileType
 
unsigned int m_qseqSize
 
unsigned int m_qseqDisplayPeriod
 
bool m_qseqMeasureRunTimes
 
unsigned int m_qseqDataOutputPeriod
 
std::string m_qseqDataOutputFileName
 
std::string m_qseqDataOutputFileType
 
std::set< unsigned int > m_qseqDataOutputAllowedSet
 

Private Member Functions

void copy (const McOptionsValues &src)
 Copies the option values from src to this. More...
 
void checkOptions ()
 

Private Attributes

BoostInputOptionsParserm_parser
 
std::string m_option_help
 
std::string m_option_dataOutputFileName
 
std::string m_option_dataOutputAllowedSet
 
std::string m_option_pseq_dataOutputPeriod
 
std::string m_option_pseq_dataOutputFileName
 
std::string m_option_pseq_dataOutputFileType
 
std::string m_option_pseq_dataOutputAllowedSet
 
std::string m_option_qseq_dataInputFileName
 
std::string m_option_qseq_dataInputFileType
 
std::string m_option_qseq_size
 
std::string m_option_qseq_displayPeriod
 
std::string m_option_qseq_measureRunTimes
 
std::string m_option_qseq_dataOutputPeriod
 
std::string m_option_qseq_dataOutputFileName
 
std::string m_option_qseq_dataOutputFileType
 
std::string m_option_qseq_dataOutputAllowedSet
 

Friends

std::ostream & operator<< (std::ostream &os, const McOptionsValues &obj)
 

Detailed Description

This class provides options for the Monte Carlo sequence generator if no input file is available.

Monte Carlo sequence generator expects options for its methods. This class provides default values for such options if no input file is available.

Definition at line 74 of file MonteCarloSGOptions.h.

Constructor & Destructor Documentation

QUESO::McOptionsValues::McOptionsValues ( )

Default constructor.

Assigns the default suite of options to the Monte Carlo sequence generator.

Definition at line 37 of file MonteCarloSGOptions.C.

43  :
44  m_prefix ("mc_"),
47  //m_dataOutputAllowedSet (),
51  //m_pseqDataOutputAllowedSet (),
52 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
53  m_pseqComputeStats (UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV ),
54 #endif
63  //m_qseqDataOutputAllowedSet (),
64 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
65  m_qseqComputeStats (UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV ),
66  m_alternativePSsOptionsValues(),
67  m_alternativeQSsOptionsValues(),
68 #endif
69  m_parser(NULL),
70  m_option_help (m_prefix + "help" ),
71  m_option_dataOutputFileName (m_prefix + "dataOutputFileName" ),
72  m_option_dataOutputAllowedSet (m_prefix + "dataOutputAllowedSet" ),
73  m_option_pseq_dataOutputPeriod (m_prefix + "pseq_dataOutputPeriod" ),
74  m_option_pseq_dataOutputFileName (m_prefix + "pseq_dataOutputFileName" ),
75  m_option_pseq_dataOutputFileType (m_prefix + "pseq_dataOutputFileType" ),
76  m_option_pseq_dataOutputAllowedSet(m_prefix + "pseq_dataOutputAllowedSet" ),
77 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
78  m_option_pseq_computeStats (m_prefix + "pseq_computeStats" ),
79 #endif
80  m_option_qseq_dataInputFileName (m_prefix + "qseq_dataInputFileName" ),
81  m_option_qseq_dataInputFileType (m_prefix + "qseq_dataInputFileType" ),
82  m_option_qseq_size (m_prefix + "qseq_size" ),
83  m_option_qseq_displayPeriod (m_prefix + "qseq_displayPeriod" ),
84  m_option_qseq_measureRunTimes (m_prefix + "qseq_measureRunTimes" ),
85  m_option_qseq_dataOutputPeriod (m_prefix + "qseq_dataOutputPeriod" ),
86  m_option_qseq_dataOutputFileName (m_prefix + "qseq_dataOutputFileName" ),
87  m_option_qseq_dataOutputFileType (m_prefix + "qseq_dataOutputFileType" ),
88  m_option_qseq_dataOutputAllowedSet(m_prefix + "qseq_dataOutputAllowedSet" )
89 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
90  ,
91  m_option_qseq_computeStats (m_prefix + "qseq_computeStats" )
92 #endif
93 {
94 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
95  if (alternativePSsOptionsValues) m_alternativePSsOptionsValues = *alternativePSsOptionsValues;
96  if (alternativeQSsOptionsValues) m_alternativeQSsOptionsValues = *alternativeQSsOptionsValues;
97 #endif
98 }
std::string m_option_qseq_dataOutputFileType
#define UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV
std::string m_option_pseq_dataOutputFileType
BoostInputOptionsParser * m_parser
#define UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_TYPE_ODV
#define UQ_MOC_SG_DATA_OUTPUT_FILE_NAME_ODV
std::string m_option_qseq_dataOutputFileName
std::string m_option_qseq_displayPeriod
#define UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV
#define UQ_MOC_SG_PSEQ_DATA_OUTPUT_PERIOD_ODV
#define UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_TYPE_ODV
std::string m_option_dataOutputAllowedSet
std::string m_option_dataOutputFileName
#define UQ_MOC_SG_QSEQ_DATA_OUTPUT_PERIOD_ODV
#define UQ_MOC_SG_QSEQ_DISPLAY_PERIOD_ODV
std::string m_option_qseq_dataOutputPeriod
#define UQ_MOC_SG_QSEQ_MEASURE_RUN_TIMES_ODV
std::string m_option_pseq_dataOutputFileName
#define UQ_MOC_SG_HELP
#define UQ_MOC_SG_QSEQ_SIZE_ODV
#define UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_TYPE_ODV
#define UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_NAME_ODV
std::string m_help
If non-empty string, print options and values to output file.
#define UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_NAME_ODV
std::string m_option_qseq_dataInputFileType
std::string m_option_qseq_dataOutputAllowedSet
std::string m_option_pseq_dataOutputPeriod
std::string m_option_pseq_dataOutputAllowedSet
std::string m_option_qseq_measureRunTimes
std::string m_option_qseq_dataInputFileName
QUESO::McOptionsValues::McOptionsValues ( const BaseEnvironment env,
const char *  prefix 
)

Prefix constructor for reading input options from a file.

Definition at line 100 of file MonteCarloSGOptions.C.

References QUESO::BoostInputOptionsParser::getOption(), m_dataOutputAllowedSet, m_dataOutputFileName, m_help, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_help, m_option_pseq_dataOutputAllowedSet, m_option_pseq_dataOutputFileName, m_option_pseq_dataOutputFileType, m_option_pseq_dataOutputPeriod, m_option_qseq_dataInputFileName, m_option_qseq_dataInputFileType, m_option_qseq_dataOutputAllowedSet, m_option_qseq_dataOutputFileName, m_option_qseq_dataOutputFileType, m_option_qseq_dataOutputPeriod, m_option_qseq_displayPeriod, m_option_qseq_measureRunTimes, m_option_qseq_size, m_parser, m_pseqDataOutputAllowedSet, m_pseqDataOutputFileName, m_pseqDataOutputFileType, m_pseqDataOutputPeriod, m_qseqDataInputFileName, m_qseqDataInputFileType, m_qseqDataOutputAllowedSet, m_qseqDataOutputFileName, m_qseqDataOutputFileType, m_qseqDataOutputPeriod, m_qseqDisplayPeriod, m_qseqMeasureRunTimes, m_qseqSize, QUESO::BoostInputOptionsParser::registerOption(), QUESO::BoostInputOptionsParser::scanInputFile(), UQ_MOC_SG_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_MOC_SG_DATA_OUTPUT_FILE_NAME_ODV, UQ_MOC_SG_HELP, UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV, UQ_MOC_SG_PSEQ_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_NAME_ODV, UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_TYPE_ODV, UQ_MOC_SG_PSEQ_DATA_OUTPUT_PERIOD_ODV, UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV, UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_NAME_ODV, UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_TYPE_ODV, UQ_MOC_SG_QSEQ_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_NAME_ODV, UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_TYPE_ODV, UQ_MOC_SG_QSEQ_DATA_OUTPUT_PERIOD_ODV, UQ_MOC_SG_QSEQ_DISPLAY_PERIOD_ODV, UQ_MOC_SG_QSEQ_MEASURE_RUN_TIMES_ODV, and UQ_MOC_SG_QSEQ_SIZE_ODV.

107  :
108  m_prefix ((std::string)(prefix) + "mc_"),
111  //m_dataOutputAllowedSet (),
115  //m_pseqDataOutputAllowedSet (),
116 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
117  m_pseqComputeStats (UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV ),
118 #endif
127  //m_qseqDataOutputAllowedSet (),
128 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
129  m_qseqComputeStats (UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV ),
130  m_alternativePSsOptionsValues(),
131  m_alternativeQSsOptionsValues(),
132 #endif
133  m_parser(new BoostInputOptionsParser(env->optionsInputFileName())),
134  m_option_help (m_prefix + "help" ),
135  m_option_dataOutputFileName (m_prefix + "dataOutputFileName" ),
136  m_option_dataOutputAllowedSet (m_prefix + "dataOutputAllowedSet" ),
137  m_option_pseq_dataOutputPeriod (m_prefix + "pseq_dataOutputPeriod" ),
138  m_option_pseq_dataOutputFileName (m_prefix + "pseq_dataOutputFileName" ),
139  m_option_pseq_dataOutputFileType (m_prefix + "pseq_dataOutputFileType" ),
140  m_option_pseq_dataOutputAllowedSet(m_prefix + "pseq_dataOutputAllowedSet" ),
141 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
142  m_option_pseq_computeStats (m_prefix + "pseq_computeStats" ),
143 #endif
144  m_option_qseq_dataInputFileName (m_prefix + "qseq_dataInputFileName" ),
145  m_option_qseq_dataInputFileType (m_prefix + "qseq_dataInputFileType" ),
146  m_option_qseq_size (m_prefix + "qseq_size" ),
147  m_option_qseq_displayPeriod (m_prefix + "qseq_displayPeriod" ),
148  m_option_qseq_measureRunTimes (m_prefix + "qseq_measureRunTimes" ),
149  m_option_qseq_dataOutputPeriod (m_prefix + "qseq_dataOutputPeriod" ),
150  m_option_qseq_dataOutputFileName (m_prefix + "qseq_dataOutputFileName" ),
151  m_option_qseq_dataOutputFileType (m_prefix + "qseq_dataOutputFileType" ),
152  m_option_qseq_dataOutputAllowedSet(m_prefix + "qseq_dataOutputAllowedSet" )
153 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
154  ,
155  m_option_qseq_computeStats (m_prefix + "qseq_computeStats" )
156 #endif
157 {
158 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
159  if (alternativePSsOptionsValues) m_alternativePSsOptionsValues = *alternativePSsOptionsValues;
160  if (alternativeQSsOptionsValues) m_alternativeQSsOptionsValues = *alternativeQSsOptionsValues;
161 #endif
162 
163  m_parser->registerOption<std::string >(m_option_help, UQ_MOC_SG_HELP , "produce help message for Monte Carlo distribution calculator");
164  m_parser->registerOption<std::string >(m_option_dataOutputFileName, UQ_MOC_SG_DATA_OUTPUT_FILE_NAME_ODV , "name of generic data output file" );
165  m_parser->registerOption<std::string >(m_option_dataOutputAllowedSet, UQ_MOC_SG_DATA_OUTPUT_ALLOWED_SET_ODV , "subEnvs that will write to generic data output file" );
166  m_parser->registerOption<unsigned int>(m_option_pseq_dataOutputPeriod, UQ_MOC_SG_PSEQ_DATA_OUTPUT_PERIOD_ODV , "period of message display during param sequence generation" );
167  m_parser->registerOption<std::string >(m_option_pseq_dataOutputFileName, UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_NAME_ODV , "name of data output file for parameters" );
168  m_parser->registerOption<std::string >(m_option_pseq_dataOutputFileType, UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_TYPE_ODV , "type of data output file for parameters" );
169  m_parser->registerOption<std::string >(m_option_pseq_dataOutputAllowedSet, UQ_MOC_SG_PSEQ_DATA_OUTPUT_ALLOWED_SET_ODV, "subEnvs that will write to data output file for parameters" );
170 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
171  m_parser->registerOption<bool >(m_option_pseq_computeStats, UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV , "compute statistics on sequence of parameter" );
172 #endif
173  m_parser->registerOption<std::string >(m_option_qseq_dataInputFileName, UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_NAME_ODV , "name of data input file for qois" );
174  m_parser->registerOption<std::string >(m_option_qseq_dataInputFileType, UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_TYPE_ODV , "type of data input file for qois" );
175  m_parser->registerOption<unsigned int>(m_option_qseq_size, UQ_MOC_SG_QSEQ_SIZE_ODV , "size of qoi sequence" );
176  m_parser->registerOption<unsigned int>(m_option_qseq_displayPeriod, UQ_MOC_SG_QSEQ_DISPLAY_PERIOD_ODV , "period of message display during qoi sequence generation" );
178  m_parser->registerOption<unsigned int>(m_option_qseq_dataOutputPeriod, UQ_MOC_SG_QSEQ_DATA_OUTPUT_PERIOD_ODV , "period of message display during qoi sequence generation" );
179  m_parser->registerOption<std::string >(m_option_qseq_dataOutputFileName, UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_NAME_ODV , "name of data output file for qois" );
180  m_parser->registerOption<std::string >(m_option_qseq_dataOutputFileType, UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_TYPE_ODV , "type of data output file for qois" );
181  m_parser->registerOption<std::string >(m_option_qseq_dataOutputAllowedSet, UQ_MOC_SG_QSEQ_DATA_OUTPUT_ALLOWED_SET_ODV, "subEnvs that will write to data output file for qois" );
182 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
183  m_parser->registerOption<bool >(m_option_qseq_computeStats, UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV , "compute statistics on sequence of qoi" );
184 #endif
185 
187 
188  m_parser->getOption<std::string >(m_option_help, m_help);
195 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
196  m_parser->getOption<bool >(m_option_pseq_computeStats, m_pseq_computeStats);
197 #endif
207 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
208  m_parser->getOption<bool >(m_option_qseq_computeStats, m_qseq_computeStats);
209 #endif
210 }
std::string m_option_qseq_dataOutputFileType
#define UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV
std::string m_option_pseq_dataOutputFileType
BoostInputOptionsParser * m_parser
#define UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_TYPE_ODV
#define UQ_MOC_SG_DATA_OUTPUT_FILE_NAME_ODV
std::string m_option_qseq_dataOutputFileName
std::string m_option_qseq_displayPeriod
#define UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV
#define UQ_MOC_SG_PSEQ_DATA_OUTPUT_PERIOD_ODV
#define UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_TYPE_ODV
std::set< unsigned int > m_pseqDataOutputAllowedSet
std::string m_option_dataOutputAllowedSet
#define UQ_MOC_SG_QSEQ_DATA_OUTPUT_ALLOWED_SET_ODV
std::string m_option_dataOutputFileName
void scanInputFile()
This is the method that parses the input file.
#define UQ_MOC_SG_QSEQ_DATA_OUTPUT_PERIOD_ODV
#define UQ_MOC_SG_QSEQ_DISPLAY_PERIOD_ODV
std::string m_option_qseq_dataOutputPeriod
#define UQ_MOC_SG_QSEQ_MEASURE_RUN_TIMES_ODV
std::string m_option_pseq_dataOutputFileName
#define UQ_MOC_SG_HELP
#define UQ_MOC_SG_QSEQ_SIZE_ODV
#define UQ_MOC_SG_PSEQ_DATA_OUTPUT_ALLOWED_SET_ODV
void registerOption(std::string name, T defaultValue, std::string description)
Call this to register an option with the parser.
#define UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_TYPE_ODV
#define UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_NAME_ODV
std::string m_help
If non-empty string, print options and values to output file.
#define UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_NAME_ODV
std::string m_option_qseq_dataInputFileType
std::string m_option_qseq_dataOutputAllowedSet
std::set< unsigned int > m_dataOutputAllowedSet
std::string m_option_pseq_dataOutputPeriod
std::string m_option_pseq_dataOutputAllowedSet
std::set< unsigned int > m_qseqDataOutputAllowedSet
#define UQ_MOC_SG_DATA_OUTPUT_ALLOWED_SET_ODV
std::string m_option_qseq_measureRunTimes
void getOption(std::string &name, T &value)
Get option name from the parser and set value to the parsed value.
std::string m_option_qseq_dataInputFileName
QUESO::McOptionsValues::McOptionsValues ( const McOptionsValues src)

Copy constructor.

It assigns the same options values from src to this.

Definition at line 213 of file MonteCarloSGOptions.C.

References copy().

214 {
215  this->copy(src);
216 }
void copy(const McOptionsValues &src)
Copies the option values from src to this.
QUESO::McOptionsValues::~McOptionsValues ( )
virtual

Destructor.

Definition at line 218 of file MonteCarloSGOptions.C.

219 {
220 }

Member Function Documentation

void QUESO::McOptionsValues::checkOptions ( )
private

Definition at line 230 of file MonteCarloSGOptions.C.

231 {
232  // Do nothing
233 }
void QUESO::McOptionsValues::copy ( const McOptionsValues src)
private

Copies the option values from src to this.

Definition at line 236 of file MonteCarloSGOptions.C.

References m_dataOutputAllowedSet, m_dataOutputFileName, m_pseqDataOutputAllowedSet, m_pseqDataOutputFileName, m_pseqDataOutputFileType, m_pseqDataOutputPeriod, m_qseqDataInputFileName, m_qseqDataInputFileType, m_qseqDataOutputAllowedSet, m_qseqDataOutputFileName, m_qseqDataOutputFileType, m_qseqDataOutputPeriod, m_qseqDisplayPeriod, m_qseqMeasureRunTimes, and m_qseqSize.

Referenced by McOptionsValues(), and operator=().

237 {
238  m_dataOutputFileName = src.m_dataOutputFileName;
239  m_dataOutputAllowedSet = src.m_dataOutputAllowedSet;
240  m_pseqDataOutputPeriod = src.m_pseqDataOutputPeriod;
241  m_pseqDataOutputFileName = src.m_pseqDataOutputFileName;
242  m_pseqDataOutputFileType = src.m_pseqDataOutputFileType;
243  m_pseqDataOutputAllowedSet = src.m_pseqDataOutputAllowedSet;
244 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
245  m_pseqComputeStats = src.m_pseqComputeStats;
246 #endif
247  m_qseqDataInputFileName = src.m_qseqDataInputFileName;
248  m_qseqDataInputFileType = src.m_qseqDataInputFileType;
249  m_qseqSize = src.m_qseqSize;
250  m_qseqDisplayPeriod = src.m_qseqDisplayPeriod;
251  m_qseqMeasureRunTimes = src.m_qseqMeasureRunTimes;
252  m_qseqDataOutputPeriod = src.m_qseqDataOutputPeriod;
253  m_qseqDataOutputFileName = src.m_qseqDataOutputFileName;
254  m_qseqDataOutputFileType = src.m_qseqDataOutputFileType;
255  m_qseqDataOutputAllowedSet = src.m_qseqDataOutputAllowedSet;
256 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
257  m_qseqComputeStats = src.m_qseqComputeStats;
258 #endif
259 
260 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
261  m_alternativePSsOptionsValues = src.m_alternativePSsOptionsValues;
262  m_alternativeQSsOptionsValues = src.m_alternativeQSsOptionsValues;
263 #endif
264 
265  return;
266 }
std::set< unsigned int > m_pseqDataOutputAllowedSet
std::set< unsigned int > m_dataOutputAllowedSet
std::set< unsigned int > m_qseqDataOutputAllowedSet
McOptionsValues & QUESO::McOptionsValues::operator= ( const McOptionsValues rhs)

Assignment operator; it copies rhs to this.

Definition at line 223 of file MonteCarloSGOptions.C.

References copy().

224 {
225  this->copy(rhs);
226  return *this;
227 }
void copy(const McOptionsValues &src)
Copies the option values from src to this.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const McOptionsValues obj 
)
friend

Definition at line 268 of file MonteCarloSGOptions.C.

269 {
270  os << (*(obj.m_parser)) << std::endl;
271 
272  os << obj.m_option_dataOutputFileName << " = " << obj.m_dataOutputFileName
273  << "\n" << obj.m_option_dataOutputAllowedSet << " = ";
274  for (std::set<unsigned int>::iterator setIt = obj.m_dataOutputAllowedSet.begin(); setIt != obj.m_dataOutputAllowedSet.end(); ++setIt) {
275  os << *setIt << " ";
276  }
277  os << "\n" << obj.m_option_pseq_dataOutputPeriod << " = " << obj.m_pseqDataOutputPeriod
278  << "\n" << obj.m_option_pseq_dataOutputFileName << " = " << obj.m_pseqDataOutputFileName
279  << "\n" << obj.m_option_pseq_dataOutputFileType << " = " << obj.m_pseqDataOutputFileType
280  << "\n" << obj.m_option_pseq_dataOutputAllowedSet << " = ";
281  for (std::set<unsigned int>::iterator setIt = obj.m_pseqDataOutputAllowedSet.begin(); setIt != obj.m_pseqDataOutputAllowedSet.end(); ++setIt) {
282  os << *setIt << " ";
283  }
284  os
285 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
286  << "\n" << obj.m_option_pseq_computeStats << " = " << obj.m_pseqComputeStats
287 #endif
288  << "\n" << obj.m_option_qseq_dataInputFileName << " = " << obj.m_qseqDataInputFileName
289  << "\n" << obj.m_option_qseq_dataInputFileType << " = " << obj.m_qseqDataInputFileType
290  << "\n" << obj.m_option_qseq_size << " = " << obj.m_qseqSize
291  << "\n" << obj.m_option_qseq_displayPeriod << " = " << obj.m_qseqDisplayPeriod
292  << "\n" << obj.m_option_qseq_measureRunTimes << " = " << obj.m_qseqMeasureRunTimes
293  << "\n" << obj.m_option_qseq_dataOutputPeriod << " = " << obj.m_qseqDataOutputPeriod
294  << "\n" << obj.m_option_qseq_dataOutputFileName << " = " << obj.m_qseqDataOutputFileName
295  << "\n" << obj.m_option_qseq_dataOutputFileType << " = " << obj.m_qseqDataOutputFileType
296  << "\n" << obj.m_option_qseq_dataOutputAllowedSet << " = ";
297  for (std::set<unsigned int>::iterator setIt = obj.m_qseqDataOutputAllowedSet.begin(); setIt != obj.m_qseqDataOutputAllowedSet.end(); ++setIt) {
298  os << *setIt << " ";
299  }
300 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
301  os << "\n" << obj.m_option_qseq_computeStats << " = " << obj.m_qseqComputeStats;
302 #endif
303 
304  return os;
305 }

Member Data Documentation

std::set<unsigned int> QUESO::McOptionsValues::m_dataOutputAllowedSet
std::string QUESO::McOptionsValues::m_dataOutputFileName
std::string QUESO::McOptionsValues::m_help

If non-empty string, print options and values to output file.

Definition at line 111 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues().

std::string QUESO::McOptionsValues::m_option_dataOutputAllowedSet
private

Definition at line 142 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_dataOutputFileName
private

Definition at line 141 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_help
private

Definition at line 140 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues().

std::string QUESO::McOptionsValues::m_option_pseq_dataOutputAllowedSet
private

Definition at line 147 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_pseq_dataOutputFileName
private

Definition at line 145 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_pseq_dataOutputFileType
private

Definition at line 146 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_pseq_dataOutputPeriod
private

Definition at line 144 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_dataInputFileName
private

Definition at line 152 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_dataInputFileType
private

Definition at line 153 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_dataOutputAllowedSet
private

Definition at line 160 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_dataOutputFileName
private

Definition at line 158 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_dataOutputFileType
private

Definition at line 159 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_dataOutputPeriod
private

Definition at line 157 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_displayPeriod
private

Definition at line 155 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_measureRunTimes
private

Definition at line 156 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_option_qseq_size
private

Definition at line 154 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

BoostInputOptionsParser* QUESO::McOptionsValues::m_parser
private

Definition at line 138 of file MonteCarloSGOptions.h.

Referenced by McOptionsValues(), and QUESO::operator<<().

std::string QUESO::McOptionsValues::m_prefix

Definition at line 108 of file MonteCarloSGOptions.h.

std::set<unsigned int> QUESO::McOptionsValues::m_pseqDataOutputAllowedSet
std::string QUESO::McOptionsValues::m_pseqDataOutputFileName
std::string QUESO::McOptionsValues::m_pseqDataOutputFileType
unsigned int QUESO::McOptionsValues::m_pseqDataOutputPeriod
std::string QUESO::McOptionsValues::m_qseqDataInputFileName
std::string QUESO::McOptionsValues::m_qseqDataInputFileType
std::set<unsigned int> QUESO::McOptionsValues::m_qseqDataOutputAllowedSet
std::string QUESO::McOptionsValues::m_qseqDataOutputFileName
std::string QUESO::McOptionsValues::m_qseqDataOutputFileType
unsigned int QUESO::McOptionsValues::m_qseqDataOutputPeriod
unsigned int QUESO::McOptionsValues::m_qseqDisplayPeriod
bool QUESO::McOptionsValues::m_qseqMeasureRunTimes
unsigned int QUESO::McOptionsValues::m_qseqSize

The documentation for this class was generated from the following files:

Generated on Thu Jun 11 2015 13:52:36 for queso-0.53.0 by  doxygen 1.8.5