CGAL 5.3.2 - 2D and Surface Function Interpolation
|
#include <CGAL/interpolation_functions.h>
CGAL::cpp98::unary_function< Map::key_type, std::pair< Map::mapped_type, bool > >.
The struct Data_access
implements a functor that allows to retrieve data from an associative container.
The functor keeps a reference to the container. Given an instance of the container's key type, it returns a pair of the container's value type and a Boolean indicating whether the retrieval was successful.
This class can be used to provide the values and gradients of the interpolation functions.
Parameters
The class Data_access
has the container type Map
as template parameter.
Types | |
typedef Map::mapped_type | Data_type |
typedef Map::key_type | Key_type |
Creation | |
Data_access (const Map &map) | |
Introduces a Data_access to the container map . | |
std::pair< Data_type, bool > | operator() (const Key_type &p) |
If there is an entry for p in the container map , then the pair of map.find(p) and true is returned. More... | |
Additional Inherited Members | |
Public Types inherited from CGAL::cpp98::unary_function< Map::key_type, std::pair< Map::mapped_type, bool > > | |
typedef ArgumentType | argument_type |
typedef ResultType | result_type |
std::pair<Data_type, bool> CGAL::Data_access< Map >::operator() | ( | const Key_type & | p | ) |
If there is an entry for p
in the container map
, then the pair of map.find(p)
and true
is returned.
Otherwise, the Boolean value of the pair is false
.