Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 44dce83e51
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (28 sloc) 0.922 kb
#pragma once
#include "types.hpp"
#include <boost/make_shared.hpp>
#include <boost/range/iterator_range.hpp>
#include <boost/spirit/include/support_istream_iterator.hpp>
#include <istream>
class IndexItemIterator : public boost::iterator_facade<
IndexItemIterator,
const ClicIndexItem,
boost::single_pass_traversal_tag,
const ClicIndexItem&,
std::ptrdiff_t
> {
public:
IndexItemIterator();
IndexItemIterator(std::istream& in);
private:
friend class boost::iterator_core_access;
const ClicIndexItem& dereference() const;
bool equal(const IndexItemIterator& other) const;
void increment();
boost::shared_ptr<ClicIndexItem> value;
std::ptrdiff_t i;
std::istream* in;
boost::spirit::istream_iterator inputBegin;
boost::spirit::istream_iterator inputEnd;
};
boost::iterator_range<IndexItemIterator> parseIndex(std::istream& in);
Jump to Line
Something went wrong with that request. Please try again.