26 #include "op_traits.hpp"
27 #include "../../utilities/container_iterator.hpp"
32 template<
typename ATYPE>
class array_view;
86 sub_op(
const OP1T &o1,
const OP2T &o2):
97 return this->_op1[i]-this->_op2[i];
110 value_type
at(
size_t i)
const
124 return _op1.size() > _op2.size() ? _op1.size() : _op2.size();
140 const_iterator
end()
const
OP1::inplace_arithmetic inplace_arithmetic
inplace arithmetic type
Definition: op_traits.hpp:88
container_iterator< array_type > iterator
iterator type
Definition: sub_op.hpp:62
#define EXCEPTION_RECORD
macro creating an instance of ExceptionRecord
Definition: exceptions.hpp:48
const_iterator begin() const
get const iterator to the first element
Definition: sub_op.hpp:131
value_type at(size_t i) const
get result at i
Definition: sub_op.hpp:110
void storage_type
storage type - not used for this
Definition: sub_op.hpp:60
sub_op< OP1T, OP2T > array_type
type of the template
Definition: sub_op.hpp:58
OP1T::value_type value_type
type of the element
Definition: sub_op.hpp:56
iterator type
Definition: container_iterator.hpp:59
sub_op(const OP1T &o1, const OP2T &o2)
constructor
Definition: sub_op.hpp:86
size_t size() const
get size of the expression
Definition: sub_op.hpp:122
OP1::map_type map_type
index map type
Definition: op_traits.hpp:86
container_iterator< const array_type > const_reverse_iterator
const reverse iterator
Definition: sub_op.hpp:69
container_iterator< array_type > reverse_iterator
reverse iterator
Definition: sub_op.hpp:67
index error
Definition: exceptions.hpp:437
Definition: add_op.hpp:29
value_type operator[](size_t i) const
get value i
Definition: sub_op.hpp:95
op_trait< OP1T >::ref_type _op1
reference to the left operand
Definition: sub_op.hpp:50
array_trait< OP1T, OP2T >::inplace_arithmetic inplace_arithmetic
inplace arithmetic type
Definition: sub_op.hpp:77
array_trait< OP1T, OP2T >::map_type map_type
index map type
Definition: sub_op.hpp:74
operator reference trait
Definition: op_traits.hpp:43
subtraction expression template
Definition: sub_op.hpp:46
array_view< array_type > view_type
view type
Definition: sub_op.hpp:71
container_iterator< const array_type > const_iterator
const iterator type
Definition: sub_op.hpp:64
op_trait< OP2T >::ref_type _op2
reference to the right operand
Definition: sub_op.hpp:52
const_iterator end() const
get const iterator to the last element
Definition: sub_op.hpp:140
provides a view on a part of an array
Definition: add_op.hpp:32