HyperspaceExplorer 0.7.1
Public Member Functions | Private Attributes
LoopHelper< N, P, dimension, NUM > Class Template Reference

Class that applies a function on every value in a MultiDimensionalVector. More...

#include <LoopHelper.h>

Collaboration diagram for LoopHelper< N, P, dimension, NUM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LoopHelper (const VecMath::Vector< P, NUM > &x_min, const VecMath::Vector< P, NUM > &x_max, const VecMath::Vector< P, unsigned > &grid_size, std::shared_ptr< ParametricFunction< N, P, NUM > > f)
 Set the function, boundaries and grid size we're working with.
void recalculateOneDimensionOfGrid (VecMath::MultiDimensionalVector< VecMath::Vector< N, NUM >, dimension > &values, VecMath::Vector< P, NUM > &current_x)
 Loop over one dimension, if necessary loop over lower dimensions too.

Private Attributes

VecMath::Vector< P, NUM > _x_min
 Lower boundary of grid on which the ParametricFunction is applied.
VecMath::Vector< P, NUM > _x_max
 Upper boundary of grid on which the ParametricFunction is applied.
VecMath::Vector< P, unsigned > _grid_size
 Vector of grid sizes.
std::shared_ptr
< ParametricFunction< N, P,
NUM > > 
_f
 The function to be evaluated on every grid point.

Detailed Description

template<unsigned N, unsigned P, unsigned dimension, typename NUM>
class LoopHelper< N, P, dimension, NUM >

Class that applies a function on every value in a MultiDimensionalVector.

Template Parameters:
NThe dimension of the definition vector space.
PThe dimension of the parameter vector space.
dimensionThe dimension (in parameter vector space) we currently loop over.
NUMThe numeric type managed by the grid.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo