Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-19 09:46:11

0001 // Copyright David Abrahams 2004. Distributed under the Boost
0002 // Software License, Version 1.0. (See accompanying
0003 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0004 #ifndef WRAPPER_DWA2004720_HPP
0005 # define WRAPPER_DWA2004720_HPP
0006 
0007 # include <boost/python/detail/wrapper_base.hpp>
0008 # include <boost/python/override.hpp>
0009 # include <boost/python/converter/registered.hpp>
0010 # include <boost/python/detail/sfinae.hpp>
0011 
0012 namespace boost { namespace python { 
0013 
0014 template <class T>
0015 class wrapper : public detail::wrapper_base
0016 {
0017  public:
0018     // Do not touch this implementation detail!
0019     typedef T _wrapper_wrapped_type_;
0020 
0021  protected:
0022     override get_override(char const* name) const
0023     {
0024         typedef detail::wrapper_base base;
0025         converter::registration const& r
0026             = converter::registered<T>::converters;
0027         PyTypeObject* type = r.get_class_object();
0028         
0029         return this->base::get_override(name, type);
0030     }
0031 };
0032 
0033 }} // namespace boost::python
0034 
0035 #endif // WRAPPER_DWA2004720_HPP