11 #include <unordered_map>
91 const std::string& pybind_doc);
98 const std::string& white_space =
" \t\n");
118 py::module& pybind_module,
119 const std::string& function_name,
120 const std::unordered_map<std::string, std::string>& map_parameter_docs =
121 std::unordered_map<std::string, std::string>());
126 py::module& pybind_module,
127 const std::string& class_name,
128 const std::string& function_name,
129 const std::unordered_map<std::string, std::string>&
130 map_parameter_body_docs =
131 std::unordered_map<std::string, std::string>());
std::string long_default_
static std::vector< std::string > GetArgumentTokens(const std::string &pybind_doc)
std::vector< OverloadDocs > overload_docs_
std::string ToGoogleDocString() const
Generate Google style python docstring.
FunctionDoc(const std::string &pybind_doc)
void ParseReturn()
Parse function return.
static ArgumentDoc ParseArgumentToken(const std::string &argument_token)
Parse individual argument token and returns a ArgumentDoc.
size_t ParseFunctionName()
static std::string StringCleanAll(std::string &s, const std::string &white_space=" \t\n")
Runs all string cleanup functions.
void ParseArguments()
Parse ArgumentDoc for each argument.
void ClassMethodDocInject(py::module &pybind_module, const std::string &class_name, const std::string &function_name, const std::unordered_map< std::string, std::string > &map_parameter_body_docs)
py::handle static_property
void FunctionDocInject(py::module &pybind_module, const std::string &function_name, const std::unordered_map< std::string, std::string > &map_parameter_body_docs)
Generic file read and write utility for python interface.
std::vector< ArgumentDoc > argument_docs_