![]() |
stldb::checkpoint_iterator
// In header: </Users/bobw/workspaces/STLdb/stldb_lib/stldb/checkpoint.h> template<typename T> class checkpoint_iterator : public std::iterator< std::input_iterator_tag, T, std::ptrdiff_t, const T *, const T & > { public: // types typedef T value_type; typedef const T & reference; typedef const T * pointer; // construct/copy/destruct checkpoint_iterator(const checkpoint_iterator &); checkpoint_iterator(checkpoint_ifstream &, std::size_t, boost::interprocess::offset_t = 0); // public member functions bool operator==(const checkpoint_iterator &); bool operator!=(const checkpoint_iterator &); bool operator<(const checkpoint_iterator &); reference operator*() const; pointer operator->() const; checkpoint_iterator & operator++(); checkpoint_iterator operator++(int); checkpoint_loc_t checkpoint_location() const; // private member functions void forward(); };
An input iterator which can be used to read the contents of a current checkpoint file, sequentially, from start to end. Usefull for load_checkpoint.
checkpoint_iterator
public
construct/copy/destructcheckpoint_iterator(const checkpoint_iterator & rarg);
checkpoint_iterator(checkpoint_ifstream & ckpt, std::size_t ckpt_len, boost::interprocess::offset_t off = 0);
checkpoint_iterator public member functionsbool operator==(const checkpoint_iterator & rarg);
bool operator!=(const checkpoint_iterator & rarg);
bool operator<(const checkpoint_iterator & rarg);
reference operator*() const;
pointer operator->() const;
checkpoint_iterator & operator++();
checkpoint_iterator operator++(int n);
checkpoint_loc_t checkpoint_location() const;