Implementation of Array class.
| T | type of element in array. |


Public Member Functions | |
| Array () | |
| Default constructor of an array. More... | |
| Array (std::size_t size, std::size_t capacity, void *dataPtr, bool isCPU=true) | |
| Constructor of a non-owning array. More... | |
| Array (std::size_t capacity, bool isCPU=true) | |
| Constructor of a memory-owning array. More... | |
| ~Array () | |
| Destructor of the Array. More... | |
| Array (const Array &)=delete | |
| Array is non-copyable. More... | |
| Array & | operator= (const Array &)=delete |
| Array is non-copyable. More... | |
| Array (Array &&t) | |
| Move constructor of Array. More... | |
| Array & | operator= (Array &&t) |
| Move assignment operator of Array. More... | |
| void | setSize (std::size_t size) |
| Set size of the Array. More... | |
| const T & | operator[] (int idx) const |
| Const array index operator. More... | |
| T & | operator[] (int idx) |
| Array 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 array.
| size | size of the array. |
| capacity | capacity of the array. |
| dataPtr | data pointer to the raw source array. |
| isCPU | whether to allocate array on CPU or GPU. |
Definition at line 151 of file Array.h.
References cvcore::ArrayBase::isCPU().
|
inline |
Constructor of a memory-owning array.
| capacity | capacity of the array. |
| isCPU | whether to allocate array on CPU or GPU. |
Definition at line 162 of file Array.h.
References cvcore::ArrayBase::isCPU().
|
inline |
Destructor of the Array.
Definition at line 170 of file Array.h.
References cvcore::Array< T >::setSize().
|
delete |
Array 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 |
Array is non-copyable.
|
inline |
Array index operator.
| idx | index of element. |
Definition at line 245 of file Array.h.
References cvcore::ArrayBase::getElement(), and cvcore::ArrayBase::getSize().
|
inline |
Const array index operator.
| idx | index of element. |
Definition at line 234 of file Array.h.
References cvcore::ArrayBase::getElement(), and cvcore::ArrayBase::getSize().
|
inline |
Set size of the Array.
| size | size of the Array. |
Definition at line 210 of file Array.h.
References cvcore::ArrayBase::getElement(), cvcore::ArrayBase::getSize(), cvcore::ArrayBase::isCPU(), and cvcore::ArrayBase::setSize().
Referenced by cvcore::Array< T >::~Array().