|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
#include <IMP/algebra/grid_ranges.h>
This is a base class for storage types which refer to a bounded number of cells.
Definition at line 103 of file grid_ranges.h.
Public Types | |
| typedef ExtendedGridIndexD< D > | ExtendedIndex |
| typedef GridIndexD< D > | Index |
Public Member Functions | |
| BoundedGridRangeD (const Ints &counts) | |
| ExtendedGridIndexD< D > | get_end_index () const |
| Get the past-end voxel. | |
| unsigned int | get_number_of_voxels () const |
| unsigned int | get_number_of_voxels (unsigned int i) const |
| Return the number of voxels in a certain direction. | |
| void | show (std::ostream &out=std::cout) const |
All Index iterators | |
The value type is a GridIndexD; | |
| AllIndexIterator | all_indexes_begin () const |
| AllIndexIterator | all_indexes_end () const |
| Vector< GridIndexD< D > > | get_all_indexes () const |
Index Iterators | |
Iterate through a range of actual indexes. The value type for the iterator is an GridIndexD<D>. The range is defined by a pair of indexes. It includes all indexes in the axis aligned box defined by lb as the lower corner and the second as the ub. That is, if lb is \((l_x, l_y, l_z)\) and ub is \((u_x, u_y, u_z)\), then the range includes all indexes \((i_x, i_y, i_z)\) such that \(l_x \leq i_x \leq u_x\), \(l_y \leq i_y \leq u_y\) and \(l_z \leq i_z \leq u_z\). | |
| IndexIterator | indexes_begin (const ExtendedGridIndexD< D > &lb, const ExtendedGridIndexD< D > &ub) const |
| IndexIterator | indexes_end (const ExtendedGridIndexD< D > &, const ExtendedGridIndexD< D > &) const |
| ExtendedIndexIterator | extended_indexes_begin (const ExtendedGridIndexD< D > &lb, const ExtendedGridIndexD< D > &ub) const |
| ExtendedIndexIterator | extended_indexes_end (const ExtendedGridIndexD< D > &, const ExtendedGridIndexD< D > &) const |
| Vector< GridIndexD< D > > | get_indexes (const ExtendedGridIndexD< D > &lb, const ExtendedGridIndexD< D > &ub) const |
| Vector< ExtendedGridIndexD< D > > | get_extended_indexes (const ExtendedGridIndexD< D > &lb, const ExtendedGridIndexD< D > &ub) const |
| GridIndexD< D > | get_index (const ExtendedGridIndexD< D > &v) const |
| Convert a ExtendedIndex into a real Index if possible. | |
| bool | get_has_index (const ExtendedGridIndexD< D > &v) const |
| Return true if the ExtendedIndex is also a normal index value. | |
| ExtendedGridIndexD< D > | get_minimum_extended_index () const |
| Return the ExtendedGridIndexD of all zeros. | |
| ExtendedGridIndexD< D > | get_maximum_extended_index () const |
| Return the index of the maximal cell. | |
| typedef ExtendedGridIndexD<D> IMP::algebra::BoundedGridRangeD< D >::ExtendedIndex |
Definition at line 120 of file grid_ranges.h.
| typedef GridIndexD<D> IMP::algebra::BoundedGridRangeD< D >::Index |
Definition at line 119 of file grid_ranges.h.
| IMP::algebra::BoundedGridRangeD< D >::BoundedGridRangeD | ( | ) |
Definition at line 124 of file grid_ranges.h.
|
explicit |
Definition at line 125 of file grid_ranges.h.
| AllIndexIterator IMP::algebra::BoundedGridRangeD< D >::all_indexes_begin | ( | ) | const |
Definition at line 159 of file grid_ranges.h.
| AllIndexIterator IMP::algebra::BoundedGridRangeD< D >::all_indexes_end | ( | ) | const |
Definition at line 165 of file grid_ranges.h.
| ExtendedIndexIterator IMP::algebra::BoundedGridRangeD< D >::extended_indexes_begin | ( | const ExtendedGridIndexD< D > & | lb, |
| const ExtendedGridIndexD< D > & | ub ) const |
Definition at line 221 of file grid_ranges.h.
| ExtendedIndexIterator IMP::algebra::BoundedGridRangeD< D >::extended_indexes_end | ( | const ExtendedGridIndexD< D > & | , |
| const ExtendedGridIndexD< D > & | ) const |
Definition at line 226 of file grid_ranges.h.
| Vector< GridIndexD< D > > IMP::algebra::BoundedGridRangeD< D >::get_all_indexes | ( | ) | const |
Definition at line 167 of file grid_ranges.h.
| ExtendedGridIndexD< D > IMP::algebra::BoundedGridRangeD< D >::get_end_index | ( | ) | const |
Get the past-end voxel.
Definition at line 142 of file grid_ranges.h.
| Vector< ExtendedGridIndexD< D > > IMP::algebra::BoundedGridRangeD< D >::get_extended_indexes | ( | const ExtendedGridIndexD< D > & | lb, |
| const ExtendedGridIndexD< D > & | ub ) const |
Definition at line 238 of file grid_ranges.h.
| bool IMP::algebra::BoundedGridRangeD< D >::get_has_index | ( | const ExtendedGridIndexD< D > & | v | ) | const |
Return true if the ExtendedIndex is also a normal index value.
Definition at line 253 of file grid_ranges.h.
| GridIndexD< D > IMP::algebra::BoundedGridRangeD< D >::get_index | ( | const ExtendedGridIndexD< D > & | v | ) | const |
Convert a ExtendedIndex into a real Index if possible.
The passed index must be part of the grid
Definition at line 248 of file grid_ranges.h.
| Vector< GridIndexD< D > > IMP::algebra::BoundedGridRangeD< D >::get_indexes | ( | const ExtendedGridIndexD< D > & | lb, |
| const ExtendedGridIndexD< D > & | ub ) const |
Definition at line 233 of file grid_ranges.h.
| ExtendedGridIndexD< D > IMP::algebra::BoundedGridRangeD< D >::get_maximum_extended_index | ( | ) | const |
Return the index of the maximal cell.
Definition at line 270 of file grid_ranges.h.
| ExtendedGridIndexD< D > IMP::algebra::BoundedGridRangeD< D >::get_minimum_extended_index | ( | ) | const |
Return the ExtendedGridIndexD of all zeros.
Definition at line 262 of file grid_ranges.h.
| unsigned int IMP::algebra::BoundedGridRangeD< D >::get_number_of_voxels | ( | ) | const |
Definition at line 134 of file grid_ranges.h.
| unsigned int IMP::algebra::BoundedGridRangeD< D >::get_number_of_voxels | ( | unsigned int | i | ) | const |
Return the number of voxels in a certain direction.
Definition at line 129 of file grid_ranges.h.
| IndexIterator IMP::algebra::BoundedGridRangeD< D >::indexes_begin | ( | const ExtendedGridIndexD< D > & | lb, |
| const ExtendedGridIndexD< D > & | ub ) const |
Definition at line 203 of file grid_ranges.h.
| IndexIterator IMP::algebra::BoundedGridRangeD< D >::indexes_end | ( | const ExtendedGridIndexD< D > & | , |
| const ExtendedGridIndexD< D > & | ) const |
Definition at line 216 of file grid_ranges.h.