NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Attributes | List of all members
nest::MultiIndex< D > Class Template Reference

An index into a multidimensional array. More...

#include <position.h>

Inheritance diagram for nest::MultiIndex< D >:
nest::Position< D, int >

Public Member Functions

 MultiIndex ()
 
 MultiIndex (const Position< D, int > &ur)
 
 MultiIndex (const Position< D, int > &ll, const Position< D, int > &ur)
 
MultiIndexoperator++ ()
 
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 ()
 Default constructor, initializing all coordinates to zero. More...
 
 Position (const int &, const int &)
 2D Constructor. More...
 
 Position (const int &, const int &, const int &)
 3D Constructor. More...
 
 Position (const int *const y)
 Constructor initializing a Position from an array. More...
 
 Position (const std::vector< int > &y)
 Constructor initializing a Position from a std::vector. More...
 
 Position (const Position &other)
 Copy constructor. More...
 
 Position (const Position< D, U > &other)
 
 operator std::vector< int > () const
 
int & operator[] (int i)
 
const int & operator[] (int i) const
 
Token getToken () const
 Moves Position variables into an array. More...
 
Position operator+ (const Position< D, OT > &other) const
 Elementwise addition. More...
 
Position operator+ (const int &) const
 Elementwise addition with scalar. More...
 
Position operator- (const Position< D, OT > &other) const
 Elementwise subtraction. More...
 
Position operator- () const
 Unary minus. More...
 
Position operator- (const int &) const
 Elementwise subtraction with scalar. More...
 
Position operator* (const Position< D, OT > &other) const
 Elementwise multiplication. More...
 
Position operator* (const int &) const
 Multiplication with scalar. More...
 
Position operator/ (const Position< D, OT > &other) const
 Elementwise division. More...
 
Position operator/ (const int &) const
 Division with scalar. More...
 
Positionoperator+= (const Position< D, OT > &)
 In-place elementwise addition. More...
 
Positionoperator+= (const int &)
 In-place elementwise addition with scalar. More...
 
Positionoperator-= (const Position< D, OT > &)
 In-place elementwise subtraction. More...
 
Positionoperator-= (const int &)
 In-place elementwise subtraction with scalar. More...
 
Positionoperator*= (const Position< D, OT > &)
 In-place elementwise multiplication. More...
 
Positionoperator*= (const int &)
 In-place multiplication by scalar. More...
 
Positionoperator/= (const Position< D, OT > &)
 In-place elementwise division. More...
 
Positionoperator/= (const int &)
 In-place elementwise division. More...
 
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. More...
 
 operator std::string () const
 
void print (std::ostream &out, char sep= ' ') const
 Print position to output stream. More...
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from nest::Position< D, int >
int x_ [D]
 

Detailed Description

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

An index into a multidimensional array.

Constructor & Destructor Documentation

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

Member Function Documentation

template<int D>
Position<D,int> nest::MultiIndex< D >::get_lower_left ( ) const
inline
template<int D>
Position<D,int> nest::MultiIndex< D >::get_upper_right ( ) const
inline
template<int D>
MultiIndex& nest::MultiIndex< D >::operator++ ( )
inline
template<int D>
MultiIndex nest::MultiIndex< D >::operator++ ( int  )
inline

Member Data Documentation

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

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