- ArthurDent - Test completato codice del test di history
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@517 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
0c2cba8bbe
commit
bb1d465b34
2 changed files with 47 additions and 33 deletions
|
@ -24,20 +24,14 @@
|
|||
|
||||
|
||||
#include <glibmm/module.h> // ??
|
||||
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
|
||||
#include "config.h"
|
||||
#include "gettext.h"
|
||||
|
||||
#include "glibmm/ustring.h"
|
||||
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
#include "backend/process.hh"
|
||||
#include "backend/slice.hh"
|
||||
#include "backend/observed_subject.hh"
|
||||
#include "backend/schedulable_list.hh"
|
||||
#include "backend/schedulable_status.hh"
|
||||
|
@ -190,12 +184,12 @@ namespace sgpem
|
|||
class History : public ObservedSubject
|
||||
{
|
||||
public:
|
||||
// what the hell are these smart pointers?
|
||||
memory::smart_ptr<sgpem::SchedulableStatus> get_scheduled_at(int time) const;
|
||||
memory::smart_ptr<sgpem::SchedulableList> get_simulation_status_at(int time) const;
|
||||
int get_current_time() const;
|
||||
|
||||
memory::smart_ptr<sgpem::SchedulableStatus> get_scheduled_at(int time) const {}
|
||||
memory::smart_ptr<sgpem::SchedulableList> get_simulation_status_at(int time) const;
|
||||
int get_current_time() const {return _total_time_elapsed;}
|
||||
void enqueue_slice(const sgpem::SchedulableList& status);
|
||||
void truncate_at(int instant);
|
||||
void truncate_at(int instant) {}
|
||||
static History& get_instance();
|
||||
private:
|
||||
History(int); //private constructor. The parameter is discarded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue