ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/brains/SnapshotManager.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/brains/SnapshotManager.hpp (file contents):
Revision 1695 by tim, Mon Nov 1 22:52:57 2004 UTC vs.
Revision 1696 by tim, Tue Nov 2 15:23:46 2004 UTC

# Line 47 | Line 47 | namespace oopse{
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;
# Line 85 | Line 88 | namespace oopse{
88              //void notify();
89  
90          protected:
91 +
92 +            SnapshotManager() : currentSnapshot_(NULL), previousSnapshot_(NULL) {
93 +            }
94 +            
95              Snapshot* currentSnapshot_;
96              Snapshot* previousSnapshot_;
97              

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines