STLdb

PrevUpHomeNext

Class template checkpoint_iterator

stldb::checkpoint_iterator

Synopsis

// 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();
};

Description

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/destruct

  1. checkpoint_iterator(const checkpoint_iterator & rarg);
  2. checkpoint_iterator(checkpoint_ifstream & ckpt, std::size_t ckpt_len, 
                        boost::interprocess::offset_t off = 0);

checkpoint_iterator public member functions

  1. bool operator==(const checkpoint_iterator & rarg);
  2. bool operator!=(const checkpoint_iterator & rarg);
  3. bool operator<(const checkpoint_iterator & rarg);
  4. reference operator*() const;
  5. pointer operator->() const;
  6. checkpoint_iterator & operator++();
  7. checkpoint_iterator operator++(int n);
  8. checkpoint_loc_t checkpoint_location() const;

checkpoint_iterator private member functions

  1. void forward();

PrevUpHomeNext