Stan  2.10.0
probability, sampling & optimization
argument_probe.hpp
Go to the documentation of this file.
1 #ifndef STAN_SERVICES_ARGUMENTS_ARGUMENT_PROBE_HPP
2 #define STAN_SERVICES_ARGUMENTS_ARGUMENT_PROBE_HPP
3 
6 #include <sstream>
7 #include <string>
8 #include <vector>
9 
10 namespace stan {
11  namespace services {
12 
14  public:
15  explicit argument_probe(std::vector<argument*>& valid_args)
16  : _arguments(valid_args) {}
17 
19  for (std::vector<argument*>::iterator arg_it = _arguments.begin();
20  arg_it != _arguments.end(); ++arg_it)
21  (*arg_it)->probe_args(*arg_it, w);
22  }
23 
24  protected:
25  std::vector<argument*>& _arguments;
26  };
27 
28  } // services
29 } // stan
30 
31 #endif
std::vector< argument * > & _arguments
Probability, optimization and sampling library.
base_writer is an abstract base class defining the interface for Stan writer callbacks.
Definition: base_writer.hpp:20
argument_probe(std::vector< argument * > &valid_args)
void probe_args(stan::interface_callbacks::writer::base_writer &w)

     [ Stan Home Page ] © 2011–2016, Stan Development Team.