FreePOOMA
2.4.1
|
Options stores the list of run-time configurable options for POOMA. More...
#include <Options.h>
Public Member Functions | |
Options () | |
Options (int &argc, char **argv) | |
Options (const Options &opts) | |
Options & | operator= (const Options &opts) |
~Options () | |
int | concurrency () const |
void | concurrency (int c) |
bool | printInfo () const |
void | printInfo (bool p) |
bool | printWarnings () const |
void | printWarnings (bool p) |
bool | printErrors () const |
void | printErrors (bool p) |
const std::string & | logfile () const |
void | logfile (const std::string &s) |
bool | printStats () const |
void | printStats (bool p) |
int | debug () const |
void | debug (int p) |
bool | neverCompress () const |
void | neverCompress (bool p) |
bool | deferredGuardFills () const |
void | deferredGuardFills (bool p) |
bool | hardInit () const |
void | hardInit (bool p) |
bool | hardRun () const |
void | hardRun (bool p) |
bool | lockThreads () const |
void | lockThreads (bool p) |
bool | blockingExpressions () const |
void | blockingExpressions (bool p) |
void | usage () |
void | reset () |
void | parse (int &argc, char **&argv) |
Options stores the list of run-time configurable options for POOMA.
Internally, Pooma stores an Options instance that holds the values for these run-time configurable values. When the user calls Pooma::initialize, they can either provide an argc, argv pair with command-line options, or they can provide an Options object directly. In the former case, Pooma::initialize will create a new Options object that will parse the command-line options to get the settings. In the latter, Pooma::initialize will just use the settings in the given Options object.
An Options object just stores values for what should be used as the settings, it does not call any other POOMA routines to actually affect the changes. It is meant to be used as:
Options has the following types of methods:
Pooma::Options::Options | ( | int & | argc, |
char ** | argv | ||
) |
Pooma::Options::Options | ( | const Options & | opts | ) |
int Pooma::Options::concurrency | ( | ) | const [inline] |
void Pooma::Options::concurrency | ( | int | c | ) | [inline] |
References PAssert.
bool Pooma::Options::printInfo | ( | ) | const [inline] |
void Pooma::Options::printInfo | ( | bool | p | ) | [inline] |
bool Pooma::Options::printWarnings | ( | ) | const [inline] |
void Pooma::Options::printWarnings | ( | bool | p | ) | [inline] |
bool Pooma::Options::printErrors | ( | ) | const [inline] |
void Pooma::Options::printErrors | ( | bool | p | ) | [inline] |
const std::string& Pooma::Options::logfile | ( | ) | const [inline] |
void Pooma::Options::logfile | ( | const std::string & | s | ) | [inline] |
bool Pooma::Options::printStats | ( | ) | const [inline] |
void Pooma::Options::printStats | ( | bool | p | ) | [inline] |
int Pooma::Options::debug | ( | ) | const [inline] |
void Pooma::Options::debug | ( | int | p | ) | [inline] |
bool Pooma::Options::neverCompress | ( | ) | const [inline] |
void Pooma::Options::neverCompress | ( | bool | p | ) | [inline] |
bool Pooma::Options::deferredGuardFills | ( | ) | const [inline] |
void Pooma::Options::deferredGuardFills | ( | bool | p | ) | [inline] |
bool Pooma::Options::hardInit | ( | ) | const [inline] |
void Pooma::Options::hardInit | ( | bool | p | ) | [inline] |
bool Pooma::Options::hardRun | ( | ) | const [inline] |
void Pooma::Options::hardRun | ( | bool | p | ) | [inline] |
bool Pooma::Options::lockThreads | ( | ) | const [inline] |
void Pooma::Options::lockThreads | ( | bool | p | ) | [inline] |
bool Pooma::Options::blockingExpressions | ( | ) | const [inline] |
void Pooma::Options::blockingExpressions | ( | bool | p | ) | [inline] |
void Pooma::Options::usage | ( | ) |
void Pooma::Options::reset | ( | ) |
void Pooma::Options::parse | ( | int & | argc, |
char **& | argv | ||
) |