NEST main@f146f75
Loading...
Searching...
No Matches
nest::MultiIndex< D > Class Template Reference

An index into a multidimensional array. More...

#include <position.h>

Inheritance diagram for nest::MultiIndex< D >:
[legend]
Collaboration diagram for nest::MultiIndex< D >:
[legend]

Public Member Functions

 MultiIndex ()
 MultiIndex (const Position< D, int > &ur)
 MultiIndex (const Position< D, int > &lower_left, const Position< D, int > &upper_right)
MultiIndex & operator++ ()
MultiIndex operator++ (int)
Position< D, int > get_lower_left () const
Position< D, int > get_upper_right () const
Public Member Functions inherited from nest::Position< D, int >
Position< D, int > operator+ (const Position< D, OT > &other) const
Position< D, int > operator- (const Position< D, OT > &other) const
Position< D, int > operator* (const Position< D, OT > &other) const
Position< D, int > operator/ (const Position< D, OT > &other) const
Position< D, int > & operator+= (const Position< D, OT > &other)
Position< D, int > & operator-= (const Position< D, OT > &other)
Position< D, int > & operator*= (const Position< D, OT > &other)
Position< D, int > & operator/= (const Position< D, OT > &other)
Position & operator= (const Position &other)=default
 Assignment constructor.
int & operator[] (int i)
const std::vector< int > get_vector () const
bool operator== (const Position &y) const
bool operator!= (const Position &y) const
bool operator< (const Position &y) const
bool operator> (const Position &y) const
bool operator<= (const Position &y) const
bool operator>= (const Position &y) const
int length () const
 Length of Position vector.
 operator std::string () const
void print (std::ostream &out, char sep=' ') const
 Print position to output stream.

Private Attributes

Position< D, int > lower_left_
Position< D, int > upper_right_

Additional Inherited Members

Protected Attributes inherited from nest::Position< D, int >
std::array< int, D > x_

Detailed Description

template<int D>
class nest::MultiIndex< D >

An index into a multidimensional array.

Constructor & Destructor Documentation

◆ MultiIndex() [1/3]

template<int D>
nest::MultiIndex< D >::MultiIndex ( )
inline

References lower_left_, nest::Position< D, int >::Position, and upper_right_.

Referenced by operator++().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MultiIndex() [2/3]

template<int D>
nest::MultiIndex< D >::MultiIndex ( const Position< D, int > & ur)
inlineexplicit

References lower_left_, nest::Position< D, int >::Position, and upper_right_.

Here is the call graph for this function:

◆ MultiIndex() [3/3]

template<int D>
nest::MultiIndex< D >::MultiIndex ( const Position< D, int > & lower_left,
const Position< D, int > & upper_right )
inline

References lower_left_, nest::Position< D, int >::Position, and upper_right_.

Here is the call graph for this function:

Member Function Documentation

◆ get_lower_left()

template<int D>
Position< D, int > nest::MultiIndex< D >::get_lower_left ( ) const
inline

References lower_left_.

◆ get_upper_right()

template<int D>
Position< D, int > nest::MultiIndex< D >::get_upper_right ( ) const
inline

References upper_right_.

◆ operator++() [1/2]

template<int D>
MultiIndex & nest::MultiIndex< D >::operator++ ( )
inline

◆ operator++() [2/2]

template<int D>
MultiIndex nest::MultiIndex< D >::operator++ ( int )
inline

References MultiIndex().

Here is the call graph for this function:

Member Data Documentation

◆ lower_left_

template<int D>
Position< D, int > nest::MultiIndex< D >::lower_left_
private

◆ upper_right_

template<int D>
Position< D, int > nest::MultiIndex< D >::upper_right_
private

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