C++ Reference: python-swig

This documentation is automatically generated.

Static part of SWIG-generated C++ wrapper for Python (_module_name.cc).

This file should only be included in base.i inside Python-specific part: #ifdef SWIGPYTHON %{ #include "ortools/base/swig/python-swig.cc" %} #endif It has no XXX_H_ guard because SWIG protects all %include'd files to be used only once.

Use Py3 unicode str() type for C++ strings.

Function Type Arguments Comments
list_output_helper

Return type: inline PyObject*

Arguments: const T* vec, Converter converter

PyObjAs

Return type: inline bool

Arguments: PyObject* pystr, T* cstr

PyObjAs

Return type: inline bool

Arguments: PyObject* pystr, ::std::string* cstr

PyObjAs

Return type: inline bool

Arguments: PyObject* pystr, std::string* cstr

PyObjAs

Return type: inline bool

Arguments: PyObject* py, int* c

PyObjAs

Return type: inline bool

Arguments: PyObject* py, unsigned int* c

PyObjAs

Return type: inline bool

Arguments: PyObject* py, long* c

PyObjAs

Return type: inline bool

Arguments: PyObject* py, long long* c

PyObjAs

Return type: inline bool

Arguments: PyObject* py, unsigned long long* c

PyObjAs

Return type: inline bool

Arguments: PyObject* py, double* c

PyObjAs

Return type: inline bool

Arguments: PyObject* py, float* c

PyObjAs

Return type: inline bool

Arguments: PyObject* py, bool* c

PyObjFrom

Return type: inline PyObject*

Arguments: const T& c

PyObjFrom

Return type: inline PyObject*

Arguments: const ::std::string& c

PyObjFrom

Return type: inline PyObject*

Arguments: const std::string& c

PyObjFrom

Return type: inline PyObject*

Arguments: const double& c

PyObjFrom

Return type: inline PyObject*

Arguments: const float& c

PyString_AsStringAndSize

Return type: static inline int

Arguments: PyObject* obj, char** buf, Py_ssize_t* psize

SwigPyIntOrLong_Check

Return type: inline int

Arguments: PyObject* o

SwigString_AsString

Return type: inline std::string

Arguments: PyObject* o

SwigString_FromString

Return type: inline PyObject*

Arguments: const std::string& s

vector_input_helper

Return type: inline bool

Arguments: PyObject* seq, std::vector<T>* out, bool (*convert)(PyObject*, T* const)

vector_input_wrap_helper

Return type: inline bool

Arguments: PyObject* seq, std::vector<T>* out, swig_type_info* swig_Tp_type

vector_output_helper

Return type: inline PyObject*

Arguments: const std::vector<T>* vec, PyObject* (*converter)(const TR x)

vector_output_helper

Return type: inline PyObject*

Arguments: const std::vector<T*>* vec, const OutConverter<T*>& converter

vector_output_wrap_helper

Return type: inline PyObject*

Arguments: const std::vector<T*>* vec, swig_type_info* swig_Tp_type, bool newobj = false

Send feedback about...