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 <hboost/type_traits/add_reference.hpp>
36 #include <hboost/type_traits/remove_reference.hpp>
38 #include <type_traits>
100 template <
typename T>
111 template <
typename T>
123 template <
typename T>
132 template <
typename T>
139 template <
typename T>
153 template <
typename T>
167 template <
typename T>
183 template <
typename T>
193 return &PyTuple_Type;
197 template <
typename First,
typename Second>
204 hboost::python::tuple
result =
205 hboost::python::make_tuple(a.first, a.second);
206 return hboost::python::incref(result.ptr());
209 return &PyTuple_Type;
215 #endif // TF_RESULT_CONVERSIONS_H
hboost::remove_reference< T >::type SeqType
Tf_PySequenceToSetConverter< T > type
hboost::python::tuple TfPyCopySequenceToTuple(Seq const &seq)
Tf_PyMapToDictionaryConverter< T > type
PyTypeObject * get_pytype()
PyObject * operator()(T seq) const
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.
GLboolean GLboolean GLboolean GLboolean a
PyObject * operator()(T seq) const
Tf_PySequenceToListConverter< T > type
hboost::remove_reference< T >::type SeqType
PyObject * operator()(T seq) const
PyTypeObject * get_pytype()
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()
hboost::remove_reference< T >::type SeqType
PyObject * operator()(PairType const &a) const
std::remove_reference< T >::type SeqType
PyTypeObject * get_pytype()
hboost::python::list TfPyCopySequenceToList(Seq const &seq)