option_match utilities used for parsing command line arguments. More...
#include <adstring.hpp>
Go to the source code of this file.
Functions | |
int | option_match (int argc, char *argv[], const char *option) |
Checks if the program has been invoked with a particular command line argument ("string"). | |
int | option_match (char *_s, const char *option) |
Search for option in _s. | |
int | option_match (char *_s, const char *option, int &nopt) |
Search for option in _s and returns number of option args in _nopt. | |
int | option_match (int argc, char *argv[], const char *option, int &nopt) |
Checks if the program has been invoked with a particular command line argument ("string"). |
option_match utilities used for parsing command line arguments.
Definition in file optmatch.cpp.
int option_match | ( | int | argc, |
char * | argv[], | ||
const char * | option | ||
) |
Checks if the program has been invoked with a particular command line argument ("string").
argc | Number of command line arguments (as in all C programs) |
argv | Array (of length argc) of command line arguments (as in all C programs) |
option | Should be one of the possible command line arguments to an ADMB program. |
Definition at line 25 of file optmatch.cpp.
Referenced by ad_comm::ad_comm(), ad_comm::allocate(), allocate_dvariable_space(), function_minimizer::computations(), function_minimizer::computations1(), DF_FILE::DF_FILE(), dlist::dlist(), do_dll_housekeeping(), laplace_approximation_calculator::do_newton_raphson_banded(), get_f1b2buffer_size(), get_option_number(), grad_stack::grad_stack(), gradient_structure::gradient_structure(), function_minimizer::hess_inv(), function_minimizer::hess_routine_noparallel_random_effects(), function_minimizer::hybrid_mcmc_routine(), laplace_approximation_calculator::laplace_approximation_calculator(), function_minimizer::likeprof_routine(), function_minimizer::limited_memory_quasi_newton(), function_minimizer::limited_memory_quasi_newton_block(), function_minimizer::mcmc_computations(), function_minimizer::mcmc_routine(), function_minimizer::minimize(), laplace_approximation_calculator::operator()(), option_match(), function_minimizer::prof_minimize_re(), function_minimizer::pvm_master_mcmc_computations(), function_minimizer::quasi_newton_block(), function_minimizer::random_effects_maximization(), DF_FILE::~DF_FILE(), fixed_smartlist::~fixed_smartlist(), fixed_smartlist2::~fixed_smartlist2(), grad_stack::~grad_stack(), and test_smartlist::~test_smartlist().
int option_match | ( | char * | _s, |
const char * | option | ||
) |
Search for option in _s.
Definition at line 46 of file optmatch.cpp.
int option_match | ( | char * | _s, |
const char * | option, | ||
int & | nopt | ||
) |
Search for option in _s and returns number of option args in _nopt.
Definition at line 72 of file optmatch.cpp.
int option_match | ( | int | argc, |
char * | argv[], | ||
const char * | option, | ||
int & | nopt | ||
) |
Checks if the program has been invoked with a particular command line argument ("string").
If so, counts the number of arguments ("nopt") to this command line option. For example if the program has been invoked with the command line option "-ind FILE", then nopt=1.
argc | Number of command line arguments (as in all C programs) |
argv | Array (of length argc) of command line arguments (as in all C programs) |
option | Should be one of the possible command line arguments to an ADMB program. |
nopt | On return holds the number arguments/options associated with "string". |
Definition at line 118 of file optmatch.cpp.
Generated on Tue Mar 8 2016 19:51:38 for ADMB Documentation by 1.8.0 |