toast/python/optional.hpp File Reference


Detailed Description

This file contains utility functions for writing boost::python wrappers that make use of boost::optional.

#include <boost/python.hpp>
#include <boost/optional.hpp>
#include <toast/assert.hpp>

Go to the source code of this file.

Namespaces

namespace  toast
namespace  toast::python

Classes

struct  toast::python::object_from_python< T, TfromPy >
struct  toast::python::register_python_conversion< T, TtoPy, TfromPy >
struct  toast::python::register_optional< T >
 Registers a boost::optional<Type> for in Python, making empty optionals into 'None' in Python. More...
struct  toast::python::register_optional< T >::optional_to_python
struct  toast::python::register_optional< T >::optional_from_python
struct  toast::python::register_optional< double >
struct  toast::python::register_optional< double >::optional_to_python
struct  toast::python::register_optional< double >::optional_from_python


SourceForge.net Logo