# | Line 293 | Line 293 | namespace OpenMD { | |
---|---|---|
293 | ||
294 | void releaseRigidBodyIndex(std::vector<int> indices) { | |
295 | rigidBodyIndexContainer_.insert(indices); | |
296 | + | } |
297 | + | |
298 | + | int getNextCutoffGroupIndex() { |
299 | + | return cutoffGroupIndexContainer_.pop(); |
300 | + | } |
301 | + | |
302 | + | std::vector<int> getCutoffGroupIndicesBefore(int index) { |
303 | + | return cutoffGroupIndexContainer_.getIndicesBefore(index); |
304 | } | |
305 | + | |
306 | + | void releaseCutoffGroupIndex(int index) { |
307 | + | cutoffGroupIndexContainer_.insert(index); |
308 | + | } |
309 | + | |
310 | + | void releaseCutoffGroupIndex(int beginIndex, int endIndex) { |
311 | + | cutoffGroupIndexContainer_.insert(beginIndex, endIndex); |
312 | + | } |
313 | + | |
314 | + | void releaseCutoffGroupIndex(std::vector<int> indices) { |
315 | + | cutoffGroupIndexContainer_.insert(indices); |
316 | + | } |
317 | ||
318 | private: | |
319 | ||
320 | IndexListContainer atomIndexContainer_; | |
321 | IndexListContainer rigidBodyIndexContainer_; | |
322 | + | IndexListContainer cutoffGroupIndexContainer_; |
323 | }; | |
324 | ||
325 | } //end namespace OpenMD |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |