Pooma::Options Class Reference

Options stores the list of run-time configurable options for POOMA. More...

#include <Options.h>

Collaboration diagram for Pooma::Options:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Options ()
 Options (int &argc, char **argv)
 Options (const Options &opts)
Optionsoperator= (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)


Detailed Description

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:

  1. An alternative to using argc, argv if the user does not want to;
  2. A way for POOMA to store the run-time configuration settings.

Options has the following types of methods:


Constructor & Destructor Documentation

Pooma::Options::Options (  ) 

Pooma::Options::Options ( int &  argc,
char **  argv 
)

Pooma::Options::Options ( const Options opts  ) 

Pooma::Options::~Options (  ) 


Member Function Documentation

Options& Pooma::Options::operator= ( 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 
)


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

Generated on Wed Mar 16 06:22:48 2011 for FreePOOMA by  doxygen 1.5.9