stl_iterator_core.hpp 851 B

123456789101112131415161718192021222324252627
  1. // Copyright Eric Niebler 2005.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef STL_ITERATOR_CORE_EAN20051028_HPP
  6. # define STL_ITERATOR_CORE_EAN20051028_HPP
  7. # include <boost/python/object_fwd.hpp>
  8. # include <boost/python/handle_fwd.hpp>
  9. namespace boost { namespace python { namespace objects {
  10. struct BOOST_PYTHON_DECL stl_input_iterator_impl
  11. {
  12. stl_input_iterator_impl();
  13. stl_input_iterator_impl(boost::python::object const &ob);
  14. void increment();
  15. bool equal(stl_input_iterator_impl const &that) const;
  16. boost::python::handle<> const &current() const;
  17. private:
  18. boost::python::object it_;
  19. boost::python::handle<> ob_;
  20. };
  21. }}} // namespace boost::python::object
  22. #endif // STL_ITERATOR_CORE_EAN20051028_HPP