ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class mcbase

alps::mcbase

Synopsis

// In header: <alps/ngs.hpp>


class mcbase {
public:
  // types
  typedef mcparams                             parameters_type;  
  typedef boost::ptr_map< std::string, mcany > results_type;     
  typedef std::vector< std::string >           result_names_type;

  // construct/copy/destruct
  mcbase(parameters_type const &, std::size_t = 0);

  // public member functions
  void do_update();
  void do_measurements();
  double fraction_completed() const;
  void save(boost::filesystem::path const &) const;
  void load(boost::filesystem::path const &);
  bool run(boost::function< bool()> const &);
  result_names_type result_names() const;
  result_names_type unsaved_result_names() const;
  results_type collect_results() const;
  results_type collect_results(result_names_type const &) const;

  // protected member functions
  bool complete_callback(boost::function< bool()> const &);
};

Description

mcbase public construct/copy/destruct

  1. mcbase(parameters_type const & p, std::size_t seed_offset = 0);

mcbase public member functions

  1. void do_update();
  2. void do_measurements();
  3. double fraction_completed() const;
  4. void save(boost::filesystem::path const & path) const;
  5. void load(boost::filesystem::path const & path);
  6. bool run(boost::function< bool()> const & stop_callback);
  7. result_names_type result_names() const;
  8. result_names_type unsaved_result_names() const;
  9. results_type collect_results() const;
  10. results_type collect_results(result_names_type const & names) const;

mcbase protected member functions

  1. bool complete_callback(boost::function< bool()> const & stop_callback);
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext