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)
bool IsDeleted(unsigned index)
std::vector< unsigned > mMap
void SetDeleted(unsigned index)
void SetNewIndex(unsigned oldIndex, unsigned newIndex)
unsigned GetNewIndex(unsigned oldIndex) const
VertexElementMap(unsigned size)
void Resize(unsigned size)