CAPD::DynSys Library  6.0.0
Auxil

Files

file  AdvStopwatch.h
 
file  clock.h
 
file  commandLineArgs.h
 
file  CRef.h
 
file  Functor.h
 
file  memSize.h
 
file  ofstreamcout.h
 
file  skipCommentsIstream.h
 
file  Stopwatch.h
 
file  stringOstream.h
 
file  ofstreamcout.cpp
 
file  skipCommentsIstream.cpp
 

Classes

class  AdvStopwatch
 
class  CRef< T >
 
class  ofstreamcout
 
class  SkipCommentsIstream
 
class  Stopwatch
 

Macros

#define setupCommandLineArgs
 
#define declareCommandLineArg(type, name, value)
 
#define assignCommandLineArgValue(name)
 
#define getCommandLineFile(i)    _CAPD_COMMANDLINEARGS_getFile(i,_command_line_args_)
 
#define getCommandLineFileCount()    _CAPD_COMMANDLINEARGS_fileCount(_command_line_args_)
 
#define getValueCountAndArg(value)    _CAPD_COMMANDLINEARGS_valCount(value,_command_line_args_)
 
#define showCommandLineArgs
 

Typedefs

typedef std::map< std::string, std::string > OptionMapType
 
typedef std::string::size_type IndexType
 

Functions

long double getWorldSeconds ()
 
double getProcessSeconds ()
 
double Clock ()
 
void _CAPD_COMMANDLINEARGS_decomposeArgv (int argc, char **argv, OptionMapType &A_m)
 
std::pair< int, std::string > _CAPD_COMMANDLINEARGS_valCount (const std::string &A_val, OptionMapType &A_m)
 
int _CAPD_COMMANDLINEARGS_fileCount (OptionMapType &A_m)
 
std::string _CAPD_COMMANDLINEARGS_getFile (int i, OptionMapType &A_m)
 
unsigned long int memSize ()
 
SkipCommentsIstreamoperator>> (SkipCommentsIstream &A_in, char &A_c)
 
template<typename T >
SkipCommentsIstreamoperator>> (SkipCommentsIstream &A_in, T &A_t)
 
template<typename T >
std::string & operator<< (std::string &s, const T &t)
 
double random (double d)
 returns pseudo-random double number from [0,d) More...
 
int random (int d)
 returns pseudo-random integer number from [0,d) More...
 
void randomStart (int n=0)
 initializes pseudo-random numbers generator More...
 

Variables

ofstreamcout fcout
 

Detailed Description

Macro Definition Documentation

◆ assignCommandLineArgValue

#define assignCommandLineArgValue (   name)
Value:
if(_command_line_args_.count(#name)){ \
std::istringstream iss(_command_line_args_[#name]); \
iss >> name;}

◆ declareCommandLineArg

#define declareCommandLineArg (   type,
  name,
  value 
)
Value:
type name(value); \
if(_command_line_args_.count(#name)){ \
std::istringstream iss(_command_line_args_[#name]); \
iss >> name;/* std::cout << #name << "=" << name;*/} \

◆ getCommandLineFile

#define getCommandLineFile (   i)     _CAPD_COMMANDLINEARGS_getFile(i,_command_line_args_)

◆ getCommandLineFileCount

#define getCommandLineFileCount ( )     _CAPD_COMMANDLINEARGS_fileCount(_command_line_args_)

◆ getValueCountAndArg

#define getValueCountAndArg (   value)     _CAPD_COMMANDLINEARGS_valCount(value,_command_line_args_)

◆ setupCommandLineArgs

#define setupCommandLineArgs
Value:
OptionMapType _command_line_args_; \
_CAPD_COMMANDLINEARGS_decomposeArgv(argc,argv,_command_line_args_);
std::map< std::string, std::string > OptionMapType
Definition: commandLineArgs.h:21

◆ showCommandLineArgs

#define showCommandLineArgs
Value:
for(OptionMapType::const_iterator \
it=_command_line_args_.begin(); \
it!=_command_line_args_.end(); \
++it) \
std::cout << "arg[" << it->first << \
"]=" << it->second << std::endl;

Typedef Documentation

◆ IndexType

typedef std::string::size_type IndexType

◆ OptionMapType

typedef std::map<std::string,std::string> OptionMapType

Function Documentation

◆ _CAPD_COMMANDLINEARGS_decomposeArgv()

void _CAPD_COMMANDLINEARGS_decomposeArgv ( int  argc,
char **  argv,
OptionMapType A_m 
)
inline

◆ _CAPD_COMMANDLINEARGS_fileCount()

int _CAPD_COMMANDLINEARGS_fileCount ( OptionMapType A_m)
inline

◆ _CAPD_COMMANDLINEARGS_getFile()

std::string _CAPD_COMMANDLINEARGS_getFile ( int  i,
OptionMapType A_m 
)
inline

◆ _CAPD_COMMANDLINEARGS_valCount()

std::pair<int,std::string> _CAPD_COMMANDLINEARGS_valCount ( const std::string &  A_val,
OptionMapType A_m 
)
inline

◆ Clock()

double Clock ( )
inline

◆ getProcessSeconds()

double getProcessSeconds ( )
inline

◆ getWorldSeconds()

long double getWorldSeconds ( )
inline

◆ memSize()

unsigned long int memSize ( )

◆ operator<<()

template<typename T >
std::string& operator<< ( std::string &  s,
const T &  t 
)

◆ operator>>() [1/2]

SkipCommentsIstream & operator>> ( SkipCommentsIstream A_in,
char &  A_c 
)

◆ operator>>() [2/2]

template<typename T >
SkipCommentsIstream & operator>> ( SkipCommentsIstream A_in,
T &  A_t 
)

◆ random() [1/2]

double random ( double  d)
inline

returns pseudo-random double number from [0,d)

◆ random() [2/2]

int random ( int  d)
inline

returns pseudo-random integer number from [0,d)

◆ randomStart()

void randomStart ( int  n = 0)
inline

initializes pseudo-random numbers generator

Variable Documentation

◆ fcout

ofstreamcout fcout