atlas
Classes | Namespaces | Macros
LocalView.h File Reference

This file contains the LocalView class, a class that allows to wrap any contiguous raw data into a view which is accessible with multiple indices. More...

#include <cstddef>
#include <type_traits>
#include "atlas/array/ArrayUtil.h"
#include "atlas/array/ArrayViewDefs.h"
#include "atlas/array/helpers/ArraySlicer.h"
#include "atlas/library/config.h"
Include dependency graph for LocalView.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  atlas::array::LocalView< Value, Rank >
 Multi-dimensional access existing POD array pointer. More...
 

Namespaces

 atlas
 Contains all atlas classes and methods.
 
 atlas::array
 Contains classes to operate with multidimensional arrays.
 

Macros

#define ENABLE_IF_NON_CONST
 
#define ENABLE_IF_CONST_WITH_NON_CONST(T)
 

Detailed Description

This file contains the LocalView class, a class that allows to wrap any contiguous raw data into a view which is accessible with multiple indices.

Macro Definition Documentation

◆ ENABLE_IF_CONST_WITH_NON_CONST

#define ENABLE_IF_CONST_WITH_NON_CONST (   T)
Value:
template <typename T, \
typename std::enable_if<( std::is_const<Value>::value && is_non_const_value_type<T>::value ), \
int>::type* = nullptr>

◆ ENABLE_IF_NON_CONST

#define ENABLE_IF_NON_CONST
Value:
template <bool EnableBool = true, \
typename std::enable_if<( !std::is_const<Value>::value && EnableBool ), int>::type* = nullptr>