ARTS 2.5.11 (git: 6827797f)
|
Row-major grid creation. More...
#include <grids.h>
Public Types | |
using | base = b |
Public Member Functions | |
template<typename... Inds> | |
Grid (Inds... inds) noexcept | |
Grid (Grid &&g) noexcept | |
Grid & | operator= (Grid &&g) noexcept |
template<typename... Inds> | |
base & | operator() (Inds... inds) noexcept |
template<typename... Inds> | |
const base & | operator() (Inds... inds) const noexcept |
base & | operator[] (std::size_t ind) noexcept |
const base & | operator[] (std::size_t ind) const noexcept |
Static Public Attributes | |
static constexpr std::size_t | N = n |
Private Member Functions | |
std::size_t | size () const noexcept |
Private Attributes | |
std::vector< b > | ptr |
std::array< std::size_t, n > | gridsize |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Grid &g) |
Row-major grid creation.
|
inlinenoexcept |
Initialization of grid with size of the input list of indices
Definition at line 73 of file grids.h.
References Grid< b, n >::N.
|
inlinenoexcept |
Access operator
Definition at line 96 of file grids.h.
References Grid< b, n >::gridsize, index_from_gridsize(), and Grid< b, n >::ptr.
|
inlinenoexcept |
Access operator
Definition at line 90 of file grids.h.
References Grid< b, n >::gridsize, index_from_gridsize(), and Grid< b, n >::ptr.
|
inlinenoexcept |
Move and set operator
Definition at line 82 of file grids.h.
References Grid< b, n >::gridsize, and Grid< b, n >::ptr.
|
inlinenoexcept |
Access operator for VectorType
Definition at line 107 of file grids.h.
References Grid< b, n >::N, and Grid< b, n >::ptr.
|
inlinenoexcept |
Access operator for VectorType
Definition at line 101 of file grids.h.
References Grid< b, n >::N, and Grid< b, n >::ptr.
List of sizes of the grid so that the numbers represent the stepping
Definition at line 57 of file grids.h.
Referenced by Grid< b, n >::operator()(), and Grid< b, n >::operator=().
Number of dimensions
Definition at line 64 of file grids.h.
Referenced by Grid< b, n >::Grid(), and Grid< b, n >::operator[]().
List of values
Definition at line 54 of file grids.h.
Referenced by Grid< b, n >::operator()(), Grid< b, n >::operator=(), Grid< b, n >::operator[](), and Grid< b, n >::size().