Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
argument_probe.hpp
Go to the documentation of this file.
1 #ifndef STAN__GM__ARGUMENTS__ARGUMENT__PROBE__HPP
2 #define STAN__GM__ARGUMENTS__ARGUMENT__PROBE__HPP
3 
4 #include <string>
5 #include <vector>
6 #include <sstream>
7 
9 
10 namespace stan {
11 
12  namespace gm {
13 
15 
16  public:
17 
18  argument_probe(std::vector<argument*>& valid_args)
19  : _arguments(valid_args) {}
20 
21  void probe_args(std::stringstream& s) {
22 
23  for (std::vector<argument*>::iterator arg_it = _arguments.begin();
24  arg_it != _arguments.end(); ++arg_it)
25  (*arg_it)->probe_args(*arg_it, s);
26 
27  }
28 
29  protected:
30 
31  std::vector<argument*>& _arguments;
32 
33  };
34 
35  } // gm
36 
37 } // stan
38 
39 #endif
40 
argument_probe(std::vector< argument * > &valid_args)
void probe_args(std::stringstream &s)
std::vector< argument * > & _arguments

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