#include <index2D.h>
Public Member Functions | |
| Index2D () | |
| The default constructor initializes to (0, 0). | |
| Index2D (int row, int column) | |
| This constructor explicitly sets the indices. | |
| Index2D (const Index2D &other) | |
| The copy constructor deep copies its argument. | |
| ~Index2D () | |
| The destructor destroys the Index2D instance. | |
| void | setValue (int row, int column) |
| This member function explicitly sets the sets the indices. | |
| int | getColumn () const |
| This member function returns the first component of the Index2D by value. | |
| int | getRow () const |
| This member function returns the second component of the Index2D by value. | |
| Index2D & | operator= (const Index2D &other) |
| The assignment operator deep copies its argument. | |
| Index2D & | operator *= (int scalar) |
| This operator multiplies each component of the Index2D instance by a scalar. | |
| Index2D & | operator/= (int scalar) |
| This operator divides each component of the Index2D instance by a scalar. | |
| Index2D & | operator+= (const Index2D &other) |
| This operator adds a scalar to each component of the Index2D instance. | |
| Index2D & | operator-= (const Index2D &other) |
| This operator subtracts a scalar from each component of the Index2D instance. | |
| Index2D | operator- () |
| This operator returns an Index2D equal to *this, but with each element negated. | |
Definition at line 29 of file index2D.h.
| dlr::numeric::Index2D::Index2D | ( | ) | [inline] |
The default constructor initializes to (0, 0).
Definition at line 35 of file index2D.h.
Referenced by operator-().
| dlr::numeric::Index2D::Index2D | ( | int | row, | |
| int | column | |||
| ) | [inline] |
| dlr::numeric::Index2D::Index2D | ( | const Index2D & | other | ) | [inline] |
| dlr::numeric::Index2D::~Index2D | ( | ) | [inline] |
| void dlr::numeric::Index2D::setValue | ( | int | row, | |
| int | column | |||
| ) | [inline] |
This member function explicitly sets the sets the indices.
Definition at line 73 of file index2D.h.
Referenced by operator=(), and dlr::numeric::operator>>().
| int dlr::numeric::Index2D::getColumn | ( | ) | const [inline] |
This member function returns the first component of the Index2D by value.
Definition at line 84 of file index2D.h.
Referenced by dlr::numeric::correlate2D(), dlr::numeric::operator *(), dlr::numeric::operator+(), dlr::numeric::operator-(), dlr::numeric::operator/(), dlr::numeric::operator<<(), dlr::numeric::operator==(), and dlr::numeric::sum().
| int dlr::numeric::Index2D::getRow | ( | ) | const [inline] |
This member function returns the second component of the Index2D by value.
Definition at line 93 of file index2D.h.
Referenced by dlr::numeric::correlate2D(), dlr::numeric::operator *(), dlr::numeric::operator+(), dlr::numeric::operator-(), dlr::numeric::operator/(), dlr::numeric::operator<<(), dlr::numeric::operator==(), and dlr::numeric::sum().
| Index2D& dlr::numeric::Index2D::operator *= | ( | int | scalar | ) | [inline] |
| Index2D& dlr::numeric::Index2D::operator/= | ( | int | scalar | ) | [inline] |
| Index2D dlr::numeric::Index2D::operator- | ( | ) | [inline] |
1.5.2