TMB Documentation  v1.9.11
code_generator.hpp
1 #ifndef HAVE_CODE_GENERATOR_HPP
2 #define HAVE_CODE_GENERATOR_HPP
3 // Autogenerated - do not edit by hand !
4 #include <fstream>
5 #include <iostream>
6 #include <sstream>
7 #include "global.hpp"
8 
9 namespace TMBad {
10 
11 void searchReplace(std::string& str, const std::string& oldStr,
12  const std::string& newStr);
13 
14 struct code_config {
15  bool asm_comments;
16  bool gpu;
17  std::string indent;
18  std::string header_comment;
19  std::string float_str;
20  std::ostream* cout;
21  std::string float_ptr();
22  std::string void_str();
23  void init_code();
24  void write_header_comment();
25  code_config();
26 };
27 
28 void write_common(std::ostringstream& buffer, code_config cfg, size_t node);
29 
30 void write_forward(global& glob, code_config cfg = code_config());
31 
32 void write_reverse(global& glob, code_config cfg = code_config());
33 
34 void write_all(global glob, code_config cfg = code_config());
35 
36 } // namespace TMBad
37 #endif // HAVE_CODE_GENERATOR_HPP
Automatic differentiation library designed for TMB.
Definition: TMB.hpp:157
License: GPL v2