Package: GrAL Base        GrAL: Packages | Concepts | Homepage

Function Objects
[GrAL Base Component List]

These objects (models of Adaptable Unary Function) are not very essential (i.e. do not add new functionality), but are handy for parameterizing generic algorithms. More...

Collaboration diagram for Function Objects:

Modules

 Element <-> Handle conversion function objects
 Grid predicates
 Degreefunctors
 Geometric Function Objects

Functions

template<class It >
int GrAL::iterator_range_size (It it)
 Compute the range of a GrAL-iterator.

Detailed Description

These objects (models of Adaptable Unary Function) are not very essential (i.e. do not add new functionality), but are handy for parameterizing generic algorithms.

Function Documentation

template<class It >
int GrAL::iterator_range_size ( It  it  )  [inline]

Compute the range of a GrAL-iterator.

Template parameters:
  • It has It::IsDone()

This function is useful if the iterating over the possible values until no more values are there is the only way of determining the size of the sequence (this is true in particular for implicitly defined sequences)

Todo:
We could use iterator_traits<It>::difference_type for the result.

Definition at line 618 of file grid-functors.h.


©  Guntram Berti 1997-2009. See the GrAL Homepage for up-to-date information.

Generated on Tue Mar 31 19:11:01 2009 for GrAL Base by doxygen 1.5.8