示例#1
0
 /**
  * Create a new sweep object with a copied functor
  *
  * @param functor the functor that is executed on the grid
  * @param storage the storage that contains the grid points
  */
 sweep(FUNC& functor, GridStorage* storage) :
   functor(functor), storage(storage),
   algoDims(storage->getAlgorithmicDimensions()),
   numAlgoDims_(storage->getAlgorithmicDimensions().size()) {
 }
示例#2
0
 /**
  * Create a new sweep object with a default constructed functor
  *
  * @param storage the storage that contains the grid points
  */
 explicit sweep(GridStorage* storage) : functor(), storage(storage),
   algoDims(storage->getAlgorithmicDimensions()),
   numAlgoDims_(storage->getAlgorithmicDimensions().size()) {
 }