The Mutable Grid Function concept refines the Grid Function concept. It allows to change function values, that is, to store values on elements.
Name | Expression | Description |
mutable value iterator | F::iterator |
iterator over the values of f
model of STL Forward Iterator |
Name | Expression | Type requirements | return type |
start of value sequence | f.begin(); | F::iterator | |
end of value sequence | f.end(); | F::iterator | |
write access | f[e]; | F::value_type& | |
Name | Expression | Precondition | Semantics | Postcondition |
start of value sequence | i = f.begin(); | f is bound to a grid | return iterator to start of value sequence | distance(i,f.end()) == f.size() |
end of value sequence | i = f.end(); | f is bound to a grid | return iterator to past-the-end of value sequence | i is past-the-end, i == f.end() |
write access | f[e] = t; |
f is bound to a grid
e.TheGrid() == f.TheGrid() | assign the value t to f(e) | f(e) is equal to t |