ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/brains/BlockSnapshotManager.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/brains/BlockSnapshotManager.hpp (file contents):
Revision 2006 by tim, Sun Feb 13 08:05:33 2005 UTC vs.
Revision 2007 by tim, Sun Feb 13 15:56:10 2005 UTC

# Line 40 | Line 40
40   */
41   #ifndef BRAINS_BLOCKSNAPSHOTMANAGER_HPP
42   #define BRAINS_BLOCKSNAPSHOTMANAGER_HPP
43 + #include <vector>
44  
45   #include "brains/SnapshotManager.hpp"
46   namespace oopse {
# Line 59 | Line 60 | class BlockSnapshotMananger : public SnapshotManager{
60          BlockSnapshotMananger(SimInfo* info, const std::string& filename, int storageLayout, int blockCapacity = 2);
61          ~BlockSnapshotMananger();
62          
63 <        virtual Snapshot* getSnapshot(int id);
63 >        virtual Snapshot* getSnapshot(int id) { return snapshots_[id]; }
64  
65          /** Returns number of snapshot blocks in this BlockSnapshotManager*/
66          int getNBlocks() {
# Line 91 | Line 92 | class BlockSnapshotMananger : public SnapshotManager{
92          Snapshot* loadFrame(int frame);
93          
94          SimInfo* info_;
94        int storageLayout_;
95          int blockCapacity_;
96  
97          std::vector<Snapshot*> snapshots_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines