Created
November 7, 2011 11:36
-
-
Save mloskot/1344739 to your computer and use it in GitHub Desktop.
Christian brainstorming image_read_iterator for Boost.GIL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Christian Henning's original: http://pastebin.com/Qk3ssZc8 | |
namespace boost { namespace gil { | |
template< typename Reader | |
, typename View | |
> | |
class image_read_iterator | |
{ | |
public: | |
typedef std::input_iterator_tag iterator_category; | |
typedef View value_type; | |
typedef View const* pointer; | |
typedef View const& reference; | |
/// todo | |
//typedef ptrdiff_t difference_type; | |
public: | |
image_read_iterator() | |
: _reader( NULL ) | |
, _view( NULL ) | |
{} | |
image_read_iterator( Reader& reader | |
, View& view | |
) | |
: _reader( &reader ) | |
, _view( &view ) | |
{} | |
private: | |
Reader* _reader; | |
View* _view; | |
}; | |
} // namespace gil | |
} // namespace boost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment