#include <IDIL_Array.h>
Public Types | |
| typedef T * | iterator |
| Iterator type for Array<T>. | |
| typedef const T * | const_iterator |
| Const iterator type for Array<T>. | |
Public Member Functions | |
| void | reserve (long) |
| Create a buffer with size sz. | |
| T & | operator[] (const long &) |
| Returns or sets the element i. | |
| const T & | operator[] (const long &) const |
| Returns or sets the element i. | |
| T & | operator() (const long &) |
| Returns or sets the element i. | |
| const T & | operator() (const long &) const |
| Returns or sets the element i. | |
| T | valueI (const float &, const float &, const float &, const long &) |
| Return the value in the array, calculated by interpolating the values of the nearest points. | |
| T | valueN (const float &, const float &, const float &, const long &) |
| Return the value in the array, at the nearest integer location in the array. | |
| T & | operator[] (const Index &) |
| Returns or sets the element indexed by the Index p. | |
| const T & | operator[] (const Index &) const |
| Returns or sets the element indexed by the Index p. | |
| T & | operator() (const Index &) |
| Returns or sets the element indexed by the Index p. | |
| const T & | operator() (const Index &) const |
| Returns or sets the element indexed by the Index p. | |
| ArrayPart< T > & | operator[] (Array< long > &) |
| Returns or sets the elements indexed by l. | |
| ArrayPart< T > & | operator[] (Array< bool > &) |
| Returns or sets the elements which verifies the condition b. | |
| ArrayROI< T > & | operator[] (ROI) |
| Points or sets the elements in the ROI. | |
| Array< T > & | operator() (Array< long > &) |
| Extracts the elements indexed by l. | |
| Array< T > & | operator() (Array< bool > &) |
| Extracts the elements which verifies the condition b. | |
| Array< T > & | operator() (const Array< long > &) |
| Extracts the elements indexed by l. | |
| Array< T > & | operator() (const Array< bool > &) |
| Extracts the elements which verifies the condition b. | |
| Array< T > & | operator() (ROI) |
| Extracts the elements in a ROI. | |
| iterator | begin () |
| Return an iterator to the first element. | |
| iterator | end () |
| Return an iterator to the last element. | |
| template<typename T2> | |
| Array< T > & | operator+= (Array< T2 > &) |
| Adds an Array. | |
| template<typename T2> | |
| Array< T > & | operator+= (T2) |
| Adds a number on each element. | |
| template<typename T2> | |
| Array< T > & | operator-= (Array< T2 > &) |
| Substracts an Array. | |
| template<typename T2> | |
| Array< T > & | operator-= (T2) |
| Substracts a number on each element. | |
| template<typename T2> | |
| Array< T > & | operator*= (Array< T2 > &) |
| Multiplies by an Array. | |
| template<typename T2> | |
| Array< T > & | operator*= (T2) |
| Multiplies by a number on each element. | |
| template<typename T2> | |
| Array< T > & | operator/= (Array< T2 > &) |
| Divides by an Array. | |
| template<typename T2> | |
| Array< T > & | operator/= (T2) |
| Divides by a number on each element. | |
| template<typename T2> | |
| Array< T > & | operator^= (T2) |
| Computes the power on each element. | |
Array declaration | |
It starts from the position (fi+1). Returns -1 if no occurence is found. | |
| void | setdim (long) |
| void | setdim (long, long) |
| void | setdim (long, long, long) |
| void | setdim (long, long, long, long) |
| void | setdim (long, long, long, long, long) |
| void | setdim (long, long, long, long, long, long) |
| Array () | |
| Construct an empty Array. | |
| Array (long) | |
| Construct a 1D Array. | |
| Array (long, long) | |
| Construct a 2D Array. | |
| Array (long, long, long) | |
| Construct a 3D Array. | |
| Array (long, long, long, long) | |
| Construct a 3D Array. | |
| Array (long, long, long, long, long) | |
| Construct a 3D Array. | |
| Array (long, long, long, long, long, long) | |
| Construct a 3D Array. | |
| template<typename T2> | |
| Array (const Array< T2 > &) | |
| Array (const Array< T > &) | |
| ~Array () | |
| void | allocate (long) |
| Allocate memory for an existing array. | |
| void | swap (long, long) |
| Swap two elements. | |
Public Attributes | |
| T * | pV |
| Pointer to the data buffer. | |
| long | size |
| Array size. | |
| long | dim [AR_DIM] |
| Array containing the size in each dimension. | |
| bool | temporary |
| Flags the data buffer as reusable. | |
| bool | keepdata |
| Indicates that the buffer should not be destroyed by the destructor. | |
| bool | extended_buf |
| Toggles the extended buffer mode. | |
| long | buf_size |
| Array buffer size in the extended buffer mode. | |
The class Array is the base class for data storage and manipulation with IDIL. This class is polymorphic.
1.5.5