diff --git a/python/gtsam/gtsam.tpl b/python/gtsam/gtsam.tpl index de3efbee0..065486c3c 100644 --- a/python/gtsam/gtsam.tpl +++ b/python/gtsam/gtsam.tpl @@ -1,3 +1,13 @@ +/** + * @file gtsam.cpp + * @brief The auto-generated wrapper C++ source code. + * @author Duy-Nguyen Ta, Fan Jiang, Matthew Sklar + * @date Aug. 18, 2020 + * + * ** THIS FILE IS AUTO-GENERATED, DO NOT MODIFY! ** + */ + +// Include relevant boost libraries required by GTSAM {include_boost} #include @@ -6,13 +16,18 @@ #include "gtsam/base/serialization.h" #include "gtsam/nonlinear/utilities.h" // for RedirectCout. +// These are the included headers listed in `gtsam.i` {includes} #include +// Export classes for serialization {boost_class_export} +// Holder type for pybind11 {hoder_type} +// Preamble for STL classes +// TODO(fan): make this automatic #include "python/gtsam/preamble.h" using namespace std; @@ -24,6 +39,8 @@ PYBIND11_MODULE({module_name}, m_) {{ {wrapped_namespace} +// Specializations for STL classes +// TODO(fan): make this automatic #include "python/gtsam/specializations.h" }} diff --git a/python/gtsam_unstable/gtsam_unstable.tpl b/python/gtsam_unstable/gtsam_unstable.tpl index f8d2f231e..1d9dfaa40 100644 --- a/python/gtsam_unstable/gtsam_unstable.tpl +++ b/python/gtsam_unstable/gtsam_unstable.tpl @@ -1,3 +1,13 @@ +/** + * @file gtsam.cpp + * @brief The auto-generated wrapper C++ source code. + * @author Duy-Nguyen Ta, Fan Jiang, Matthew Sklar + * @date Aug. 18, 2020 + * + * ** THIS FILE IS AUTO-GENERATED, DO NOT MODIFY! ** + */ + +// Include relevant boost libraries required by GTSAM {include_boost} #include @@ -6,6 +16,7 @@ #include "gtsam/base/serialization.h" #include "gtsam/nonlinear/utilities.h" // for RedirectCout. +// These are the included headers listed in `gtsam_unstable.i` {includes} #include @@ -22,6 +33,7 @@ namespace py = pybind11; PYBIND11_MODULE({module_name}, m_) {{ m_.doc() = "pybind11 wrapper of {module_name}"; + // Note here we need to import the dependent library py::module::import("gtsam"); {wrapped_namespace}