Prev Up Next
Go backward to Grid Function Concept
Go up to Grid Functions
Go forward to Container Grid Function Concept

Mutable Grid Function Concept

Description

The Mutable Grid Function concept refines the Grid Function concept. It allows to change function values, that is, to store values on elements.

Refinement of

Grid Function

Notation
F is a type which is a model of Mutable Grid Function
f is an object of type F
i is an object of F::iterator
t is an object of F::value_type
Associated types
Name Expression Description
mutable value iterator F::iterator iterator over the values of f

model of STL Forward Iterator

Valid Expressions
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&
Expression semantics
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
Refinements
Container Grid Function
Models
Notes
See also
Grid Element Function   Grid Function  


Guntram Berti

Prev Up Next