IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::algebra::ExtendedGridIndexD< D > Class Template Reference

An index in an infinite grid on space. More...

#include <IMP/algebra/grid_indexes.h>

Inheritance diagram for IMP::algebra::ExtendedGridIndexD< D >:

Detailed Description

template<int D>
class IMP::algebra::ExtendedGridIndexD< D >

An index in an infinite grid on space.

Definition at line 31 of file grid_indexes.h.

Public Types

typedef const int * iterator

Public Member Functions

 ExtendedGridIndexD (int i, int j, int k, int l)
 ExtendedGridIndexD (int i, int j, int k, int l, int m)
 ExtendedGridIndexD (int i, int j, int k, int l, int m, int n)
 ExtendedGridIndexD (int x)
 ExtendedGridIndexD (int x, int y)
 ExtendedGridIndexD (int x, int y, int z)
 ExtendedGridIndexD (Ints vals)
 Create a grid cell from three arbitrary indexes.
template<class It>
 ExtendedGridIndexD (It b, It e)
int & at (unsigned int)
const int at (unsigned int) const
 Get the ith component (i=0,1,2).
iterator begin () const
iterator end () const
unsigned int get_dimension () const
ExtendedGridIndexD< D > get_offset (int i, int j, int k) const
ExtendedGridIndexD< D > get_uniform_offset (int ii) const
 IMP_COMPARISONS (ExtendedGridIndexD)
 IMP_HASHABLE_INLINE (ExtendedGridIndexD, return boost::hash_range(begin(), end()))
int & operator[] (unsigned int)
const int operator[] (unsigned int) const
void show (std::ostream &out=std::cout) const

Member Typedef Documentation

◆ iterator

template<int D>
typedef const int* IMP::algebra::ExtendedGridIndexD< D >::iterator

Definition at line 132 of file grid_indexes.h.

Constructor & Destructor Documentation

◆ ExtendedGridIndexD() [1/9]

template<int D>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( Ints vals)
explicit

Create a grid cell from three arbitrary indexes.

Note
Only use this from Python.

Definition at line 75 of file grid_indexes.h.

◆ ExtendedGridIndexD() [2/9]

template<int D>
template<class It>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( It b,
It e )

Definition at line 80 of file grid_indexes.h.

◆ ExtendedGridIndexD() [3/9]

template<int D>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( int x)

Definition at line 84 of file grid_indexes.h.

◆ ExtendedGridIndexD() [4/9]

template<int D>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( int x,
int y )

Definition at line 89 of file grid_indexes.h.

◆ ExtendedGridIndexD() [5/9]

template<int D>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( int x,
int y,
int z )

Definition at line 94 of file grid_indexes.h.

◆ ExtendedGridIndexD() [6/9]

template<int D>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( int i,
int j,
int k,
int l )

Definition at line 99 of file grid_indexes.h.

◆ ExtendedGridIndexD() [7/9]

template<int D>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( int i,
int j,
int k,
int l,
int m )

Definition at line 104 of file grid_indexes.h.

◆ ExtendedGridIndexD() [8/9]

template<int D>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( int i,
int j,
int k,
int l,
int m,
int n )

Definition at line 109 of file grid_indexes.h.

◆ ExtendedGridIndexD() [9/9]

template<int D>
IMP::algebra::ExtendedGridIndexD< D >::ExtendedGridIndexD ( )

Definition at line 114 of file grid_indexes.h.

Member Function Documentation

◆ at()

template<int D>
const int IMP::algebra::ExtendedGridIndexD< D >::at ( unsigned int ) const

Get the ith component (i=0,1,2).

Here is the call graph for this function:

◆ begin()

template<int D>
iterator IMP::algebra::ExtendedGridIndexD< D >::begin ( ) const

Definition at line 133 of file grid_indexes.h.

◆ end()

template<int D>
iterator IMP::algebra::ExtendedGridIndexD< D >::end ( ) const

Definition at line 134 of file grid_indexes.h.

◆ get_dimension()

template<int D>
unsigned int IMP::algebra::ExtendedGridIndexD< D >::get_dimension ( ) const

Definition at line 115 of file grid_indexes.h.

◆ get_offset()

template<int D>
ExtendedGridIndexD< D > IMP::algebra::ExtendedGridIndexD< D >::get_offset ( int i,
int j,
int k ) const

Definition at line 150 of file grid_indexes.h.

◆ get_uniform_offset()

template<int D>
ExtendedGridIndexD< D > IMP::algebra::ExtendedGridIndexD< D >::get_uniform_offset ( int ii) const

Definition at line 141 of file grid_indexes.h.


The documentation for this class was generated from the following file: