60 |
|
BlockSnapshotManager(SimInfo* info, const std::string& filename, int storageLayout, int blockCapacity = 2); |
61 |
|
~BlockSnapshotManager(); |
62 |
|
|
63 |
< |
virtual Snapshot* getSnapshot(int id) { return snapshots_[id]; } |
63 |
> |
virtual Snapshot* getSnapshot(int id); |
64 |
|
|
65 |
+ |
|
66 |
|
/** Returns number of snapshot blocks in this BlockSnapshotManager*/ |
67 |
|
int getNBlocks() { |
68 |
|
return blocks_.size(); |
69 |
|
} |
70 |
|
|
70 |
– |
void needCOMprops(bool ncp) { |
71 |
– |
reader_->setNeedCOMprops(ncp); |
72 |
– |
} |
73 |
– |
|
71 |
|
SnapshotBlock getSnapshotBlock(int block) { |
72 |
|
return blocks_.at(block); |
73 |
|
} |
74 |
|
|
75 |
|
int getNActiveBlocks(); |
79 |
– |
|
76 |
|
|
77 |
+ |
void needCOMprops(bool ncp); |
78 |
+ |
|
79 |
+ |
|
80 |
|
bool isBlockActive(int block) { |
81 |
|
return findActiveBlock(block) != activeBlocks_.end() ? true : false; |
82 |
|
} |