11 #ifndef CUBBYFLOW_ARRAY_HPP 12 #define CUBBYFLOW_ARRAY_HPP 31 template <
typename T,
size_t N>
34 template <
typename T,
size_t N>
49 template <
typename... Args>
50 Array(
size_t nx, Args... args);
54 template <
typename OtherDerived>
57 template <
typename OtherDerived>
60 ~Array()
override =
default;
70 template <
typename OtherDerived>
73 template <
typename OtherDerived>
82 void Fill(
const T& val);
86 template <
typename... Args>
87 void Resize(
size_t nx, Args... args);
89 template <
size_t M = N>
90 std::enable_if_t<(M == 1), void>
Append(
const T& val);
92 template <
typename OtherDerived,
size_t M = N>
93 std::enable_if_t<(M == 1), void>
Append(
96 template <
typename OtherDerived,
size_t M = N>
97 std::enable_if_t<(M == 1), void>
Append(
109 std::vector<T> m_data;
void SwapPtrAndSize(ArrayBase &other)
Definition: ArrayBase-Impl.hpp:269
void ClearPtrAndSize()
Definition: ArrayBase-Impl.hpp:263
Definition: ArrayBase.hpp:19
Definition: ArrayView.hpp:60
void Fill(const T &val)
Definition: Array-Impl.hpp:280
~Array() override=default
Array()
Definition: Array-Impl.hpp:162
void Clear()
Definition: Array-Impl.hpp:339
void CopyFrom(const ArrayBase< T, N, D > &other)
Definition: Array-Impl.hpp:263
Vector< size_t, N > m_size
Definition: ArrayBase.hpp:125
Definition: Matrix.hpp:27
Definition: pybind11Utils.hpp:20
Definition: Array-Impl.hpp:19
Generic N-dimensional array class interface.
Definition: Array.hpp:32
std::enable_if_t<(M==1), void > Append(const T &val)
Definition: Array-Impl.hpp:311
void Swap(Array &other)
Definition: Array-Impl.hpp:347
typename NestedInitializerLists< T, N >::Type NestedInitializerListsT
Definition: NestedInitializerList.hpp:57
void Resize(Vector< size_t, N > size_, const T &initVal=T{})
Definition: Array-Impl.hpp:286
Reference At(size_t i)
Definition: ArrayBase-Impl.hpp:138
Array & operator=(const Array &other)
Definition: Array-Impl.hpp:224
void SetPtrAndSize(Pointer ptr, size_t ni, Args... args)
Definition: ArrayBase-Impl.hpp:250
ArrayView< T, N > View()
Definition: Array-Impl.hpp:355