Implementation of ArrayN class.
| T | type of element in array. |
| N | capacity of array. |


Public Member Functions | |
| ArrayN () | |
| Default constructor of ArrayN (create an owning Tensor with capacity N). More... | |
| ArrayN (std::size_t size, void *dataPtr, bool isCPU=true) | |
| Constructor of a non-owning ArrayN. More... | |
| ArrayN (bool isCPU) | |
| Constructor of a memory-owning ArrayN. More... | |
| ~ArrayN () | |
| Destructor of the ArrayN. More... | |
| ArrayN (const ArrayN &)=delete | |
| ArrayN is non-copyable. More... | |
| ArrayN & | operator= (const ArrayN &)=delete |
| ArrayN is non-copyable. More... | |
| ArrayN (ArrayN &&t) | |
| Move constructor of ArrayN. More... | |
| ArrayN & | operator= (ArrayN &&t) |
| Move assignment operator of ArrayN. More... | |
| void | setSize (std::size_t size) |
| Set size of the ArrayN. More... | |
| const T & | operator[] (int idx) const |
| Const ArrayN index operator. More... | |
| T & | operator[] (int idx) |
| ArrayN index operator. More... | |
| void * | getElement (int idx) const |
| Get the pointer to specified index. More... | |
| std::size_t | getSize () const |
| Get the size of the array. More... | |
| std::size_t | getCapacity () const |
| Get the capacity of the array. More... | |
| std::size_t | getElementSize () const |
| Get the size of each element. More... | |
| bool | isCPU () const |
| Get the flag whether the array is CPU or GPU array. More... | |
| bool | isOwning () const |
| Get the flag whether the array is owning memory space. More... | |
| void * | getData () const |
| Get the raw pointer to the array data. More... | |
|
inline |
|
inline |
Constructor of a non-owning ArrayN.
| size | size of the array. |
| dataPtr | data pointer to the raw source array. |
| isCPU | whether to allocate array on CPU or GPU. |
Definition at line 276 of file Array.h.
References cvcore::ArrayBase::isCPU().
|
inline |
Constructor of a memory-owning ArrayN.
| isCPU | whether to allocate array on CPU or GPU. |
Definition at line 286 of file Array.h.
References cvcore::ArrayBase::isCPU().
|
inline |
Destructor of the ArrayN.
Definition at line 295 of file Array.h.
References cvcore::ArrayN< T, N >::setSize().
|
delete |
ArrayN is non-copyable.
|
inline |
|
inherited |
Get the capacity of the array.
|
inherited |
Get the raw pointer to the array data.
|
inherited |
Get the pointer to specified index.
| idx | element index. |
Referenced by cvcore::Array< T >::operator[](), cvcore::ArrayN< T, N >::operator[](), cvcore::Array< T >::setSize(), and cvcore::ArrayN< T, N >::setSize().
|
inherited |
Get the size of each element.
|
inherited |
Get the size of the array.
Referenced by cvcore::Array< T >::operator[](), cvcore::ArrayN< T, N >::operator[](), cvcore::Array< T >::setSize(), and cvcore::ArrayN< T, N >::setSize().
|
inherited |
Get the flag whether the array is CPU or GPU array.
Referenced by cvcore::Array< T >::Array(), cvcore::ArrayN< T, N >::ArrayN(), cvcore::Array< T >::setSize(), and cvcore::ArrayN< T, N >::setSize().
|
inherited |
Get the flag whether the array is owning memory space.
|
inline |
|
delete |
ArrayN is non-copyable.
|
inline |
ArrayN index operator.
| idx | index of element. |
Definition at line 370 of file Array.h.
References cvcore::ArrayBase::getElement(), and cvcore::ArrayBase::getSize().
|
inline |
Const ArrayN index operator.
| idx | index of element. |
Definition at line 359 of file Array.h.
References cvcore::ArrayBase::getElement(), and cvcore::ArrayBase::getSize().
|
inline |
Set size of the ArrayN.
| size | size of the ArrayN. |
Definition at line 335 of file Array.h.
References cvcore::ArrayBase::getElement(), cvcore::ArrayBase::getSize(), cvcore::ArrayBase::isCPU(), and cvcore::ArrayBase::setSize().
Referenced by cvcore::ArrayN< T, N >::~ArrayN().