![]() |
Fréchet View
1.6.0
A Tool for Exploring Fréchet Distance Algorithms
|
A simple two-dimensional array of fixed size.
Data is arranged in column-major order.
| T | entry type (must be default constructible) |
#include <array2d.h>
Classes | |
| class | iterator |
| an Array2D iterator More... | |
Public Member Functions | |
| Array2D (int an=0, int am=0) | |
| default constructor More... | |
| Array2D (const Array2D &that) | |
| copy constructor More... | |
| Array2D (Array2D &&that) | |
| move constructor More... | |
| ~Array2D () | |
| destructor; releases data More... | |
| Array2D & | operator= (const Array2D &that) |
| assignment operator More... | |
| Array2D & | operator= (Array2D &&that) |
| move assignment operator More... | |
| T & | at (int i, int j) |
| array accessor More... | |
| const T & | at (int i, int j) const |
| array accessor More... | |
| T & | at (int offset) |
| array accessor More... | |
| const T & | at (int offset) const |
| array accessor More... | |
| T & | operator[] (int offset) |
| array accessor More... | |
| const T & | operator[] (int offset) const |
| array accessor More... | |
| iterator | begin () |
| iterator | end () |
| size_t | offset (int i, int j) const |
| compute linear offset More... | |
| void | indices (int off, int *i, int *j) const |
| compute columnd and row from linear index More... | |
Static Public Member Functions | |
| static void | copy (T *dst, T *src, int count) |
| copy a number of entries More... | |
Public Attributes | |
| const int | n |
| number of columns More... | |
| const int | m |
| number of rows More... | |
Protected Attributes | |
| T * | d |
| array data More... | |
| frechet::data::Array2D< T >::Array2D | ( | int | an = 0, |
| int | am = 0 |
||
| ) |
default constructor
| an | number of columns |
| am | number of rows |
Definition at line 27 of file array2d_impl.h.
| frechet::data::Array2D< T >::Array2D | ( | const Array2D< T > & | that | ) |
| frechet::data::Array2D< T >::Array2D | ( | Array2D< T > && | that | ) |
| frechet::data::Array2D< T >::~Array2D | ( | ) |
destructor; releases data
Definition at line 47 of file array2d_impl.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
copy a number of entries
| dst | destination |
| src | source |
| count | number of entries to copy |
Definition at line 53 of file array2d_impl.h.
|
inline |
|
inline |
|
inline |
| Array2D< T > & frechet::data::Array2D< T >::operator= | ( | const Array2D< T > & | that | ) |
assignment operator
| that | object to copy from |
Definition at line 7 of file array2d_impl.h.
| Array2D< T > & frechet::data::Array2D< T >::operator= | ( | Array2D< T > && | that | ) |
move assignment operator
| that | object to copy from |
Definition at line 17 of file array2d_impl.h.
|
inline |
|
inline |
|
protected |
| const int frechet::data::Array2D< T >::m |
| const int frechet::data::Array2D< T >::n |