37#include "VertexElementMap.hpp"
57 for (
unsigned oldIndex=0; oldIndex<
mMap.size(); oldIndex++)
59 mMap[oldIndex] = oldIndex;
65 mMap[oldIndex] = newIndex;
70 mMap[index] = UINT_MAX;
75 return (
mMap[index] == UINT_MAX);
80 if (
mMap[oldIndex] == UINT_MAX)
82 EXCEPTION(
"VertexElement has been deleted");
84 return (
unsigned)
mMap[oldIndex];
89 for (
unsigned i=0; i<
mMap.size(); i++)
#define EXCEPTION(message)
void Resize(unsigned size)
void SetNewIndex(unsigned oldIndex, unsigned newIndex)
std::vector< unsigned > mMap
VertexElementMap(unsigned size)
unsigned GetNewIndex(unsigned oldIndex) const
void SetDeleted(unsigned index)
bool IsDeleted(unsigned index)