47 |
|
*/ |
48 |
|
class SnapshotManager { |
49 |
|
public: |
50 |
< |
SnapshotManager() : currentSnapshot_(NULL), previousSnapshot_(NULL) { |
50 |
> |
|
51 |
> |
virtual ~SnapshotManager() { |
52 |
> |
delete currentSnapshot_; |
53 |
> |
delete previousSnapshot_; |
54 |
|
} |
55 |
< |
virtual ~SnapshotManager(); |
55 |
> |
|
56 |
|
virtual bool advance() = 0; |
57 |
|
|
58 |
|
virtual Snapshot* getSnapshot(int id) = 0; |
88 |
|
//void notify(); |
89 |
|
|
90 |
|
protected: |
91 |
+ |
|
92 |
+ |
SnapshotManager() : currentSnapshot_(NULL), previousSnapshot_(NULL) { |
93 |
+ |
} |
94 |
+ |
|
95 |
|
Snapshot* currentSnapshot_; |
96 |
|
Snapshot* previousSnapshot_; |
97 |
|
|