3 #ifndef BARRY_BARRAYCELL_MEAT_HPP
4 #define BARRY_BARRAYCELL_MEAT_HPP 1
6 template<
typename Cell_Type,
typename Data_Type>
9 if (Array->is_empty(
i,
j,
false)) {
10 Array->insert_cell(
i,
j, val,
false,
false);
12 Array->el_ij.at(
i).at(
j).value = val;
17 template<
typename Cell_Type,
typename Data_Type>
20 if (Array->is_empty(
i,
j,
false)) {
21 Array->insert_cell(
i,
j, val,
false,
false);
23 Array->el_ij.at(
i).at(
j).value += val;
28 template<
typename Cell_Type,
typename Data_Type>
31 if (Array->is_empty(
i,
j,
false)) {
32 Array->insert_cell(
i,
j, -val,
false,
false);
34 Array->el_ij.at(
i).at(
j).value -= val;
39 template<
typename Cell_Type,
typename Data_Type>
42 if (!Array->is_empty(
i,
j,
false)) {
43 Array->el_ij.at(
i).at(
j).value *= val;
48 template<
typename Cell_Type,
typename Data_Type>
51 if (!Array->is_empty(
i,
j,
false)) {
52 Array->el_ij.at(
i).at(
j).value /= val;
57 template<
typename Cell_Type,
typename Data_Type>
59 return Array->get_cell(
i,
j,
false);
62 template<
typename Cell_Type,
typename Data_Type>
64 return Array->get_cell(
i,
j,
false) ==
static_cast<Cell_Type
>(val);
67 template<
typename Cell_Type,
typename Data_Type>
69 return Array->get_cell(
i,
j,
false);
72 template<
typename Cell_Type,
typename Data_Type>
74 return Array->get_cell(
i,
j,
false) ==
static_cast<Cell_Type
>(val);
77 template<
typename Cell_Type,
typename Data_Type>
79 return !(this->operator==(val));
82 template<
typename Cell_Type,
typename Data_Type>
84 return Array->get_cell(
i,
j,
false) <
static_cast<Cell_Type
>(val);
87 template<
typename Cell_Type,
typename Data_Type>
89 return Array->get_cell(
i,
j,
false) >
static_cast<Cell_Type
>(val);
92 template<
typename Cell_Type,
typename Data_Type>
94 return Array->get_cell(
i,
j,
false) <=
static_cast<Cell_Type
>(val);
97 template<
typename Cell_Type,
typename Data_Type>
99 return Array->get_cell(
i,
j,
false) >=
static_cast<Cell_Type
>(val);
bool operator==(const Cell_Type &val) const
bool operator>(const Cell_Type &val) const
bool operator<=(const Cell_Type &val) const
bool operator<(const Cell_Type &val) const
bool operator!=(const Cell_Type &val) const
bool operator>=(const Cell_Type &val) const
void operator+=(const Cell_Type &val)
void operator-=(const Cell_Type &val)
bool operator==(const Cell_Type &val) const
void operator/=(const Cell_Type &val)
void operator*=(const Cell_Type &val)
void operator=(const Cell_Type &val)