Static Public Member Functions
DUtils::STL Class Reference

#include <STL.h>

List of all members.

Static Public Member Functions

template<class T >
static void removeIndices (std::vector< T > &data, const std::vector< unsigned int > &indices, bool preserve_order=true)
template<class T >
static void removeIndices (std::vector< T > &data, std::vector< unsigned int > &indices, bool preserve_order=true)

Detailed Description

Definition at line 33 of file STL.h.


Member Function Documentation

template<class T >
void DUtils::STL::removeIndices ( std::vector< T > &  data,
const std::vector< unsigned int > &  indices,
bool  preserve_order = true 
) [static]

Removes from data the items of given indices

Parameters:
data(in/out) vector to remove items from
indicesindices of items to remove
preserve_orderif true, the items kept in data are in the same order as given. If false, the order may be different; this makes this operation faster

Definition at line 65 of file STL.h.

template<class T >
void DUtils::STL::removeIndices ( std::vector< T > &  data,
std::vector< unsigned int > &  indices,
bool  preserve_order = true 
) [static]

Removes from data the items of given indices, but can modify the index vector

Parameters:
data(in/out) vector to remove items from
indicesindices of items to remove
preserve_orderif true, the items kept in data are in the same order as given. If false, the order may be different; this makes this operation faster

Definition at line 77 of file STL.h.


The documentation for this class was generated from the following file:


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:29