Interface Documentation
Version: invalid
Namespaces | Functions
reorder.hh File Reference
#include <iterator>
#include <utility>
Include dependency graph for reorder.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 flecsi
 

Functions

template<typename order_iterator , typename value_iterator >
void flecsi::util::reorder (const order_iterator order_begin, const order_iterator order_end, const value_iterator v)
 Reorders an array in place. More...
 
template<typename order_iterator , typename value_iterator >
void flecsi::util::reorder_destructive (const order_iterator order_begin, const order_iterator order_end, const value_iterator v)
 Reorders an array in place. More...
 

Function Documentation

◆ reorder()

template<typename order_iterator , typename value_iterator >
void flecsi::util::reorder ( const order_iterator  order_begin,
const order_iterator  order_end,
const value_iterator  v 
)

Reorders an array in place.

Remarks
this version maintains the order array
Parameters
[in]order_beginThe begin iterator for the order array
[in]order_endThe end iterator for the order array
[in,out]vThe begin iterator for the value array

◆ reorder_destructive()

template<typename order_iterator , typename value_iterator >
void flecsi::util::reorder_destructive ( const order_iterator  order_begin,
const order_iterator  order_end,
const value_iterator  v 
)

Reorders an array in place.

Remarks
this version destroys the order array for performance gains
Parameters
[in,out]order_beginThe begin iterator for the order array
[in,out]order_endThe end iterator for the order array
[in,out]vThe begin iterator for the value array