1 #ifndef __NDS_ITERATE_HANDLER_HH__
2 #define __NDS_ITERATE_HANDLER_HH__
5 #include "nds_buffer.hh"
20 :
public std::enable_shared_from_this< iterate_handler >
23 explicit iterate_handler(
24 std::shared_ptr< NDS::detail::conn_p_type >&& conn_p )
28 virtual bool has_next( ) = 0;
30 virtual void next( buffers_type& ) = 0;
34 virtual ~iterate_handler( );
44 std::shared_ptr< buffers_type > cache_;
47 NDS::detail::conn_p_type*
50 return conn_p_.get( );
54 std::shared_ptr< NDS::detail::conn_p_type > conn_p_;
61 #endif // __NDS_ITERATE_HANDLER_HH__