Loading...
Searching...
No Matches
CubbyFlow::ArrayView< T, N > Class Template Reference
Generic N-dimensional array class interface. More...
#include <Core/Array/ArrayView.hpp>
Inheritance diagram for CubbyFlow::ArrayView< T, N >:
Additional Inherited Members | |
Public Types inherited from CubbyFlow::ArrayBase< T, N, ArrayView< T, N > > | |
| using | Derived = ArrayView< T, N > |
| using | ValueType = T |
| using | Reference = T & |
| using | ConstReference = const T & |
| using | Pointer = T * |
| using | ConstPointer = const T * |
| using | Iterator = T * |
| using | ConstIterator = const T * |
Protected Member Functions inherited from CubbyFlow::ArrayBase< T, N, ArrayView< T, N > > | |
| ArrayBase () | |
| ArrayBase (const ArrayBase &other) | |
| ArrayBase (ArrayBase &&other) noexcept | |
| virtual | ~ArrayBase ()=default |
| ArrayBase & | operator= (const ArrayBase &other) |
| ArrayBase & | operator= (ArrayBase &&other) noexcept |
| void | SetPtrAndSize (Pointer ptr, size_t ni, Args... args) |
| void | SetPtrAndSize (Pointer data, Vector< size_t, N > size) |
| void | SwapPtrAndSize (ArrayBase &other) |
| void | ClearPtrAndSize () |
Protected Attributes inherited from CubbyFlow::ArrayBase< T, N, ArrayView< T, N > > | |
| Pointer | m_ptr |
| Vector< size_t, N > | m_size |
Detailed Description
Generic N-dimensional array class interface.
This class provides generic template class for N-dimensional array where N must be either 1, 2 or 3. This particular class exists to provide generic interface for 1, 2 or 3 dimensional arrays using template specialization only, but it cannot create any instance by itself.
- Template Parameters
-
T - Real number type. N - Dimension.
Constructor & Destructor Documentation
◆ ArrayView() [1/7]
◆ ArrayView() [2/7]
◆ ArrayView() [3/7]
template<size_t M>
| CubbyFlow::ArrayView< T, N >::ArrayView | ( | std::enable_if_t<(M==1), T * > | ptr, |
| size_t | size | ||
| ) |
◆ ArrayView() [4/7]
◆ ~ArrayView()
◆ ArrayView() [5/7]
◆ ArrayView() [6/7]
◆ ArrayView() [7/7]
template<size_t M>
| CubbyFlow::ArrayView< T, N >::ArrayView | ( | const std::enable_if_t<(M==1), T * > | ptr, |
| size_t | size | ||
| ) |
Member Function Documentation
◆ Fill()
◆ operator=() [1/2]
|
noexcept |
◆ operator=() [2/2]
| ArrayView< const T, N > & CubbyFlow::ArrayView< T, N >::operator= | ( | const ArrayView< T, N > & | other | ) |
◆ Set() [1/2]
◆ Set() [2/2]
The documentation for this class was generated from the following files:
- Core/Array/Array.hpp
- Core/Array/ArrayView.hpp
- Core/Array/ArrayView-Impl.hpp
Public Member Functions inherited from
1.9.8