TiledArray
0.7.0
|
#include <shift_wrapper.h>
Public Types | |
typedef ShiftWrapper< T > | ShiftWrapper_ |
typedef std::remove_const< T >::type | tensor_type |
typedef tensor_type::value_type | value_type |
typedef tensor_type::size_type | size_type |
typedef tensor_type::range_type | range_type |
typedef tensor_type::reference | reference |
typedef tensor_type::const_reference | const_reference |
typedef tensor_type::pointer | pointer |
typedef tensor_type::const_pointer | const_pointer |
Public Member Functions | |
ShiftWrapper ()=delete | |
ShiftWrapper (const ShiftWrapper &)=default | |
ShiftWrapper (ShiftWrapper &&)=default | |
~ShiftWrapper ()=default | |
ShiftWrapper & | operator= (const ShiftWrapper &)=delete |
ShiftWrapper & | operator= (ShiftWrapper &&)=delete |
ShiftWrapper (T &tensor) | |
template<typename U > | |
ShiftWrapper< T > & | operator= (U &&other) |
Assignment operator. More... | |
T & | get () const |
Tensor accessor. More... | |
decltype(auto) | range () const |
Tensor type conversion operator. More... | |
decltype(auto) | data () const |
Tensor data pointer accessor. More... | |
decltype(auto) | empty () const |
Check for an empty tensor. More... | |
Shift wrapper class.
This object is used to disable the global range checks for tensor objects in various arithmetic operations. The interface of this object is the minimum required
Definition at line 41 of file shift_wrapper.h.
typedef tensor_type::const_pointer TiledArray::detail::ShiftWrapper< T >::const_pointer |
Definition at line 51 of file shift_wrapper.h.
typedef tensor_type::const_reference TiledArray::detail::ShiftWrapper< T >::const_reference |
Definition at line 49 of file shift_wrapper.h.
typedef tensor_type::pointer TiledArray::detail::ShiftWrapper< T >::pointer |
Definition at line 50 of file shift_wrapper.h.
typedef tensor_type::range_type TiledArray::detail::ShiftWrapper< T >::range_type |
Definition at line 47 of file shift_wrapper.h.
typedef tensor_type::reference TiledArray::detail::ShiftWrapper< T >::reference |
Definition at line 48 of file shift_wrapper.h.
typedef ShiftWrapper<T> TiledArray::detail::ShiftWrapper< T >::ShiftWrapper_ |
Definition at line 43 of file shift_wrapper.h.
typedef tensor_type::size_type TiledArray::detail::ShiftWrapper< T >::size_type |
Definition at line 46 of file shift_wrapper.h.
typedef std::remove_const<T>::type TiledArray::detail::ShiftWrapper< T >::tensor_type |
Definition at line 44 of file shift_wrapper.h.
typedef tensor_type::value_type TiledArray::detail::ShiftWrapper< T >::value_type |
Definition at line 45 of file shift_wrapper.h.
|
delete |
|
default |
|
default |
|
default |
|
inline |
Definition at line 67 of file shift_wrapper.h.
|
inline |
Tensor data pointer accessor.
Definition at line 103 of file shift_wrapper.h.
|
inline |
Check for an empty tensor.
true
if the tensor is empty, otherwise false
. Definition at line 108 of file shift_wrapper.h.
|
inline |
Tensor accessor.
Definition at line 88 of file shift_wrapper.h.
|
delete |
|
delete |
|
inline |
Assignment operator.
This assignment operator is a simple pass through assignment to the tensor object. It handles both copy and move assignments
U | The right-hand argument type |
other | The right-hand argument |
Definition at line 77 of file shift_wrapper.h.
|
inline |
Tensor type conversion operator.
Definition at line 98 of file shift_wrapper.h.