Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.4
   Version 1.0.4dev
      Class Index
      File List
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads

IBSimu Class Reference

Main class for IBSimu. More...

#include <ibsimu.hpp>

List of all members.

Public Member Functions

 IBSimu ()
 Default constructor.
 ~IBSimu ()
 Default destructor.
std::ostream & set_vout (std::ostream &vout)
 Set verbose output to stream vout.
std::ostream & set_vout (const std::string &filename)
 Set verbose output to file filename.
std::ostream & vout (void)
 Get a reference to verbose output stream.
bool vout_is_cout ()
 Return if verbose output stream is std::cout.
void set_verbose_output (int level)
 Set verbosity level.
int get_verbose_output (void)
 Get verbosity level.
void set_thread_count (int threadcount)
 Set the number of threads used for calculation.
int get_thread_count (void)
 Get the number of threads used for calculation.
void halt (void)
 Halt execution.

Detailed Description

Main class for IBSimu.

Used to store global settings. One instance of the class is initialized globally with the name ibsimu.


Constructor & Destructor Documentation

IBSimu::IBSimu (  ) 

Default constructor.

IBSimu::~IBSimu (  ) 

Default destructor.


Member Function Documentation

int IBSimu::get_thread_count ( void   )  [inline]

Get the number of threads used for calculation.

int IBSimu::get_verbose_output ( void   )  [inline]

Get verbosity level.

void IBSimu::halt ( void   ) 

Halt execution.

This function is called by the error handler in case of SIGTERM.

void IBSimu::set_thread_count ( int  threadcount  ) 

Set the number of threads used for calculation.

void IBSimu::set_verbose_output ( int  level  ) 

Set verbosity level.

std::ostream& IBSimu::set_vout ( const std::string &  filename  ) 

Set verbose output to file filename.

Returns a reference to the old output stream. If the output stream is redefined, the file is kept open in the background. IBSimu can only have one output stream opened at time with this function. The file is closed when the IBSimu object is destructed.

std::ostream& IBSimu::set_vout ( std::ostream &  vout  ) 

Set verbose output to stream vout.

Returns a reference to the old output stream.

std::ostream& IBSimu::vout ( void   ) 

Get a reference to verbose output stream.

bool IBSimu::vout_is_cout (  ) 

Return if verbose output stream is std::cout.


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


Reference manual for Ion Beam Simulator 1.0.4dev
Generated by Doxygen 1.7.1 on Wed May 18 2011 23:03:52.