23 #ifndef NDARRAY_Array_h_INCLUDED
24 #define NDARRAY_Array_h_INCLUDED
46 template <
typename T,
int N,
int C>
71 template <
typename T_,
int C_>
85 template <
typename T_,
int C_>
110 template <
typename T_,
int C_>
112 typename boost::enable_if<detail::Convertible<N,T_,C_,T,C>,
Array &>::type
128 template <
typename T_,
int C_>
130 typename boost::enable_if<detail::Convertible<N,T_,C_,T,C>,
Array &>::type
144 template <
typename T_,
int N_,
int C_>
154 template <
typename T_,
int N_,
int C_>
175 template <
typename T_,
int N_,
int C_>
friend class Array;
176 template <
typename T_,
int N_,
int C_>
friend class ArrayRef;
187 #endif // !NDARRAY_Array_h_INCLUDED
A proxy class for Array with deep assignment operators.
Dimension-specialized traits shared by Array and ArrayRef.
Index getStrides() const
Return a Vector of the strides of all dimensions.
void swap(ImageBase< PixelT > &a, ImageBase< PixelT > &b)
Array(Array const &other)
Non-converting copy constructor.
void swap(Array &other)
Lightweight shallow swap.
ArrayBaseN< Array > Super
bool operator!=(Array< T_, N_, C_ > const &other) const
Shallow inequality comparison.
Array(Array< T_, N, C_ > const &other)
Converting copy constructor.
Array & operator=(ArrayRef< T_, N, C_ > const &other)
Converting shallow assignment.
Forward declarations and default template parameters for ndarray.
bool isUnique() const
Return true if the Array is definitely unique.
Array(ArrayRef< T_, N, C_ > const &other)
Converting copy constructor.
Array(T *data, CorePtr const &core)
Index getShape() const
Return a Vector of the sizes of all dimensions.
An intermediate CRTP base class for Array and ArrayRef.
bool operator==(Array< T_, N_, C_ > const &other) const
Shallow equality comparison: return true if the arrays share data and have the same shape and strides...
CRTP implementation for Array and ArrayRef.
Element * getData() const
Return a raw pointer to the first element of the array.
Array & operator=(Array const &other)
Non-converting shallow assignment.
A multidimensional strided array.
Array & operator=(Array< T_, N, C_ > const &other)
Converting shallow assignment.
Public interface for arbitrary views into arrays.
Definition of ArrayBaseN, a dimension-specialized CRTP base class for Array and ArrayRef.
Array()
Default constructor.