24 #ifndef PXR_BASE_TF_PY_RESULT_CONVERSIONS_H
25 #define PXR_BASE_TF_PY_RESULT_CONVERSIONS_H
31 #include <hboost/python/tuple.hpp>
32 #include <hboost/python/list.hpp>
33 #include <hboost/python/dict.hpp>
35 #include <type_traits>
108 template <
typename T>
120 template <
typename T>
129 template <
typename T>
136 template <
typename T>
150 template <
typename T>
164 template <
typename T>
180 template <
typename T>
190 return &PyTuple_Type;
194 template <
typename First,
typename Second>
201 hboost::python::tuple
result =
202 hboost::python::make_tuple(a.first, a.second);
203 return hboost::python::incref(result.ptr());
206 return &PyTuple_Type;
212 #endif // TF_RESULT_CONVERSIONS_H
Tf_PySequenceToSetConverter< T > type
GLboolean GLboolean GLboolean GLboolean a
**But if you need a result
hboost::python::tuple TfPyCopySequenceToTuple(Seq const &seq)
Tf_PyMapToDictionaryConverter< T > type
PyTypeObject * get_pytype()
PyObject * operator()(T seq) const
std::remove_reference_t< T > SeqType
hboost::python::object TfPyCopySequenceToSet(Seq const &seq)
std::pair< First, Second > PairType
Tf_PySequenceToTupleConverter< T > type
PyTypeObject * get_pytype()
hboost::python::dict TfPyCopyMapToDictionary(Map const &map)
Creates a python dictionary from a std::map.
PyObject * operator()(T seq) const
std::remove_reference_t< T > SeqType
Tf_PySequenceToListConverter< T > type
PyObject * operator()(T seq) const
PyTypeObject * get_pytype()
std::remove_reference_t< T > SeqType
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
PyObject * operator()(T seq) const
Tf_PyPairToTupleConverter< typename T::first_type, typename T::second_type > type
#define PXR_NAMESPACE_CLOSE_SCOPE
PyTypeObject * get_pytype()
PyObject * operator()(PairType const &a) const
std::remove_reference_t< T > SeqType
PyTypeObject * get_pytype()
hboost::python::list TfPyCopySequenceToList(Seq const &seq)