ADMB Documentation  11.1.1016
 All Classes Files Functions Variables Typedefs Friends Defines
Functions
optmatch.cpp File Reference

(* $Id: optmatch.cpp 745 2013-01-17 22:55:38Z skaug $)

Description not yet available. More...

#include <admodel.h>

Go to the source code of this file.

Functions

int option_match (int argc, char *argv[], const char *string)
 Checks if the program has been invoked with a particular command line argument ("string").
int option_match (char *_s, const char *string)
 Description not yet available.
int option_match (char *_s, const char *string, const int &_nopt)
 Description not yet available.
int option_match (int argc, char *argv[], const char *string, const int &_nopt)
 Checks if the program has been invoked with a particular command line argument ("string").

Detailed Description

Description not yet available.

Definition in file optmatch.cpp.


Function Documentation

int option_match ( int  argc,
char *  argv[],
const char *  string 
)

Checks if the program has been invoked with a particular command line argument ("string").

Parameters:
argcNumber of command line arguments (as in all C programs)
argvArray (of length argc) of command line arguments (as in all C programs)
stringShould be one of the possible command line arguments to an ADMB program.
Returns:
An index into "argv" where the match with "string" is obtained. In case of no match, the value "-1" is returned.

Definition at line 21 of file optmatch.cpp.

Referenced by ad_comm::ad_comm(), ad_sbuffer::ad_sbuffer(), adpvm_manager::adpvm_manager(), ad_comm::allocate(), allocate_dvariable_space(), function_minimizer::computations(), function_minimizer::computations1(), function_minimizer::computationsx(), DF_FILE::DF_FILE(), dlist::dlist(), do_dll_housekeeping(), laplace_approximation_calculator::do_newton_raphson_banded(), function_minimizer::function_evaluation_block_pvm_slave_random_effects(), 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(), main(), function_minimizer::mcmc_computations(), function_minimizer::mcmc_routine(), function_minimizer::minimize(), laplace_approximation_calculator::operator()(), function_minimizer::prof_minimize_re(), function_minimizer::pvm_master_mcmc_computations(), function_minimizer::pvm_master_mcmc_routine(), function_minimizer::quasi_newton_block(), function_minimizer::quasi_newton_block_pvm_master(), function_minimizer::quasi_newton_block_pvm_master_random_effects(), function_minimizer::random_effects_maximization(), adpvm_manager::start_slave_processes(), 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 *  string 
)

Description not yet available.

Parameters:

Definition at line 39 of file optmatch.cpp.

int option_match ( char *  _s,
const char *  string,
const int _nopt 
)

Description not yet available.

Parameters:

Definition at line 64 of file optmatch.cpp.

int option_match ( int  argc,
char *  argv[],
const char *  string,
const 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.

Parameters:
argcNumber of command line arguments (as in all C programs)
argvArray (of length argc) of command line arguments (as in all C programs)
stringShould be one of the possible command line arguments to an ADMB program.
noptOn return holds the number arguments/options associated with "string".
Returns:
An index into "argv" where the match with "string" is obtained. In case of no match, the value "-1" is returned.

Definition at line 103 of file optmatch.cpp.