|
Gromacs
2026.0-dev-20251110-920b6d1
|
#include <gromacs/topology/block.h>
Division of a range of indices into consecutive blocks.
A range of consecutive indices 0 to full.range.end() is divided into numBlocks() consecutive blocks of consecutive indices. Block b contains indices i for which block(b).begin() <= i < block(b).end().
Public Types | |
| using | Block = Range< int > |
| A block defined by a range of atom indices. | |
Public Member Functions | |
| int | numBlocks () const |
| Returns the number of blocks. | |
| Block | block (int blockIndex) const |
Returns the size of the block with index blockIndex. | |
| Block | fullRange () const |
| Returns the full range. | |
| void | appendBlock (int blockSize) |
Appends a block of size blockSize at the end of the range. More... | |
| void | clear () |
| Removes all blocks. | |
|
inline |
Appends a block of size blockSize at the end of the range.
1.8.5