![]() |
AlgoPlus v0.1.0
|
Iterator for Mat2d class. More...
#include <mat_2d.h>
Public Types | |
typedef T * | iterator |
Public Member Functions | |
Iterator (T *_arr, size_t rows, size_t cols, size_t index) noexcept | |
constructor for Iterator class | |
Iterator & | operator= (T *curr) |
operator = for Iterator class | |
Iterator & | operator++ () |
operator ++ for Iterator class | |
Iterator & | operator++ (int) |
Iterator & | operator-- () |
operator – for Iterator class | |
Iterator & | operator-- (int) |
operator – for Iterator class | |
bool | operator!= (const Iterator &it) |
operator != for Iterator class | |
template<typename A, size_t CCOLS> | |
Mat1d< A, CCOLS > & | operator* () |
operator * for Iterator class | |
Mat2d (std::vector< std::vector< T > > v={}) | |
constructor for Mat2d class | |
Mat2d (const T val) noexcept | |
constructor for Mat2d class with initializer value | |
Mat2d (const Mat2d &mat) | |
copy constructor for Mat2d class | |
Mat2d & | operator= (Mat2d &mat) |
operator = for Mat2d class | |
T & | operator() (size_t i, size_t j) const |
operator (i, j) for Mat2d class | |
Mat1d< T, COLS > & | operator() (size_t i) |
operator () for Mat2d class | |
size_t | size () const |
size function | |
size_t | cols () const |
cols function | |
size_t | rows () const |
rows function | |
Iterator | begin () |
begin() Iterator for Mat2d class | |
Iterator | end () |
end() Iterator for Mat2d class | |
Friends | |
std::ostream & | operator<< (std::ostream &out, Mat2d &mat) |
operator << for Mat2d class | |
|
inlineexplicitnoexcept |
|
inline |
cols function
copy constructor for Mat2d class
mat | the 2d matrix we want to copy |
constructor for Mat2d class with initializer value
val | the value that we want all the index of the array to have |
|
inline |
operator != for Iterator class
operator () for Mat2d class
i | index that's pointing to the row |
|
inline |
operator (i, j) for Mat2d class
i | index that's pointing to the row |
j | index that's pointing to the column |
|
inline |
operator * for Iterator class
|
inline |
rows function
|
inline |
size function