LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Protected Types | Private Types | Private Member Functions | Friends | List of all members
ndarray::ArrayBaseN< Derived, 5 > Class Template Reference

An intermediate CRTP base class for Array and ArrayRef (specialization for 5). More...

#include <ArrayBaseN.h>

Inheritance diagram for ndarray::ArrayBaseN< Derived, 5 >:
ndarray::ArrayBase< Derived > ndarray::ExpressionBase< Derived >

Public Types

typedef Super::Element Element
 
- Public Types inherited from ndarray::ArrayBase< Derived >
typedef Traits::Element Element
 Data type of array elements. More...
 
typedef Traits::Iterator Iterator
 Nested array or element iterator. More...
 
typedef Traits::Reference Reference
 Nested array or element reference. More...
 
typedef Traits::Value Value
 Nested array or element value type. More...
 
typedef Traits::ND ND
 Number of dimensions (boost::mpl::int_). More...
 
typedef Traits::RMC RMC
 Number of guaranteed row-major contiguous dimensions, counted from the end (boost::mpl::int_). More...
 
typedef Vector< int, ND::value > Index
 Vector type for N-dimensional indices. More...
 
typedef ArrayRef< Element,
ND::value,-RMC::value > 
FullTranspose
 ArrayRef to a reverse-ordered contiguous array; the result of a call to transpose(). More...
 
typedef ArrayRef< Element,
ND::value, 0 > 
Transpose
 ArrayRef to a noncontiguous array; the result of a call to transpose(...). More...
 
typedef Array< Element,
ND::value, RMC::value > 
Shallow
 The corresponding Array type. More...
 
typedef ArrayRef< Element,
ND::value, RMC::value > 
Deep
 The corresponding ArrayRef type. More...
 
- Public Types inherited from ndarray::ExpressionBase< Derived >
typedef ExpressionTraits
< Derived >::Element 
Element
 Data type of expression elements. More...
 
typedef ExpressionTraits
< Derived >::ND 
ND
 Number of dimensions (boost::mpl::int_). More...
 
typedef ExpressionTraits
< Derived >::Iterator 
Iterator
 Nested expression or element iterator. More...
 
typedef ExpressionTraits
< Derived >::Reference 
Reference
 Nested expression or element reference. More...
 
typedef ExpressionTraits
< Derived >::Value 
Value
 Nested expression or element value type. More...
 
typedef Vector< int, ND::value > Index
 Vector type for N-dimensional indices. More...
 
typedef Derived Self
 CRTP derived type. More...
 
typedef Value value_type
 
typedef Iterator iterator
 
typedef Iterator const_iterator
 
typedef Reference reference
 
typedef Reference const_reference
 
typedef Iterator pointer
 
typedef int difference_type
 
typedef int size_type
 

Public Member Functions

Elementoperator() (int n0, int n1, int n2, int n3, int n4) const
 
- Public Member Functions inherited from ndarray::ArrayBase< Derived >
Reference operator[] (int n) const
 Return a single subarray. More...
 
Elementoperator[] (Index const &i) const
 Return a single element from the array. More...
 
Iterator begin () const
 Return an Iterator to the beginning of the array. More...
 
Iterator end () const
 Return an Iterator to one past the end of the array. More...
 
ElementgetData () const
 Return a raw pointer to the first element of the array. More...
 
bool isEmpty () const
 Return true if the array has a null data point. More...
 
Manager::Ptr getManager () const
 Return the opaque object responsible for memory management. More...
 
template<int P>
int getSize () const
 Return the size of a specific dimension. More...
 
template<int P>
int getStride () const
 Return the stride in a specific dimension. More...
 
Index getShape () const
 Return a Vector of the sizes of all dimensions. More...
 
Index getStrides () const
 Return a Vector of the strides of all dimensions. More...
 
int getNumElements () const
 Return the total number of elements in the array. More...
 
FullTranspose transpose () const
 Return a view of the array with the order of the dimensions reversed. More...
 
Transpose transpose (Index const &order) const
 Return a view of the array with the dimensions permuted. More...
 
Shallow const shallow () const
 Return a Array view to this. More...
 
Deep const deep () const
 Return an ArrayRef view to this. More...
 
template<typename Seq >
ResultOf< View< Seq > >::Type operator[] (View< Seq > const &def) const
 Return a general view into this array (see Tutorial). More...
 
template<typename XprKind , int Rows, int Cols>
EigenView< Element, ND::value,
RMC::value, XprKind, Rows,
Cols > 
asEigen () const
 
template<typename XprKind >
EigenView< Element, ND::value,
RMC::value, XprKind > 
asEigen () const
 
template<int Rows, int Cols>
EigenView< Element, ND::value,
RMC::value, Eigen::MatrixXpr,
Rows, Cols > 
asEigen () const
 
EigenView< Element, ND::value,
RMC::value, Eigen::MatrixXpr > 
asEigen () const
 
- Public Member Functions inherited from ndarray::ExpressionBase< Derived >
Reference operator[] (int n) const
 Return a single nested expression or element. More...
 
Reference front () const
 Return the first nested expression or element. More...
 
Reference back () const
 Return the last nested expression or element. More...
 
Iterator begin () const
 Return an Iterator to the beginning of the expression. More...
 
Iterator end () const
 Return an Iterator to one past the end of the expression. More...
 
template<int P>
int getSize () const
 Return the size of a specific dimension. More...
 
Index getShape () const
 Return a Vector of the sizes of all dimensions. More...
 
int getNumElements () const
 Return the total number of elements in the expression. More...
 
size_type size () const
 Return the size of the first dimension. More...
 
bool empty () const
 Return true if the first dimension has no elements. More...
 

Protected Types

typedef Super::Core Core
 
typedef Super::CorePtr CorePtr
 
- Protected Types inherited from ndarray::ArrayBase< Derived >
typedef ExpressionTraits< Derived > Traits
 
typedef Traits::Core Core
 
typedef Traits::CorePtr CorePtr
 

Private Types

typedef ArrayBase< Derived > Super
 

Private Member Functions

void operator= (ArrayBaseN const &other)
 
 ArrayBaseN (Element *data, CorePtr const &core)
 

Friends

template<typename T_ , int N_, int C_>
class Array
 
template<typename T_ , int N_, int C_>
class ArrayRef
 

Additional Inherited Members

- Protected Member Functions inherited from ndarray::ArrayBase< Derived >
void operator= (ArrayBase const &other)
 
 ArrayBase (Element *data, CorePtr const &core)
 
- Protected Member Functions inherited from ndarray::ExpressionBase< Derived >
SelfgetSelf ()
 
Self const & getSelf () const
 
- Protected Attributes inherited from ndarray::ArrayBase< Derived >
Element_data
 
CorePtr _core
 

Detailed Description

template<typename Derived>
class ndarray::ArrayBaseN< Derived, 5 >

An intermediate CRTP base class for Array and ArrayRef (specialization for 5).

Definition at line 166 of file ArrayBaseN.h.

Member Typedef Documentation

template<typename Derived >
typedef Super::Core ndarray::ArrayBaseN< Derived, 5 >::Core
protected

Definition at line 169 of file ArrayBaseN.h.

template<typename Derived >
typedef Super::CorePtr ndarray::ArrayBaseN< Derived, 5 >::CorePtr
protected

Definition at line 170 of file ArrayBaseN.h.

template<typename Derived >
typedef Super::Element ndarray::ArrayBaseN< Derived, 5 >::Element

Definition at line 172 of file ArrayBaseN.h.

template<typename Derived >
typedef ArrayBase<Derived> ndarray::ArrayBaseN< Derived, 5 >::Super
private

Definition at line 167 of file ArrayBaseN.h.

Constructor & Destructor Documentation

template<typename Derived >
ndarray::ArrayBaseN< Derived, 5 >::ArrayBaseN ( Element data,
CorePtr const &  core 
)
inlineprivate

Definition at line 185 of file ArrayBaseN.h.

185 : Super(data, core) {}
ArrayBase< Derived > Super
Definition: ArrayBaseN.h:167

Member Function Documentation

template<typename Derived >
Element& ndarray::ArrayBaseN< Derived, 5 >::operator() ( int  n0,
int  n1,
int  n2,
int  n3,
int  n4 
) const
inline

Definition at line 174 of file ArrayBaseN.h.

174  {
175  return this->operator[](makeVector(n0, n1, n2, n3, n4));
176  }
Vector< T, N > makeVector(T v1, T v2,..., T vN)
Variadic constructor for Vector.
Reference operator[](int n) const
Return a single subarray.
Definition: ArrayBase.h:86
template<typename Derived >
void ndarray::ArrayBaseN< Derived, 5 >::operator= ( ArrayBaseN< Derived, 5 > const &  other)
inlineprivate

Definition at line 181 of file ArrayBaseN.h.

181  {
182  Super::operator=(other);
183  }
void operator=(ArrayBase const &other)
Definition: ArrayBase.h:230

Friends And Related Function Documentation

template<typename Derived >
template<typename T_ , int N_, int C_>
friend class Array
friend

Definition at line 179 of file ArrayBaseN.h.

template<typename Derived >
template<typename T_ , int N_, int C_>
friend class ArrayRef
friend

Definition at line 180 of file ArrayBaseN.h.


The documentation for this class was generated from the following file: