![]() |
VCG Library
|
Accessory class to update pointers after eventual reallocation caused by adding elements. More...
#include <allocate.h>
Public Member Functions | |
void | Update (SimplexPointerType &vp) |
Update a pointer to an element of a mesh after a reallocation. | |
bool | NeedUpdate () |
return true if the allocation operation that initialized this PointerUpdater has caused a reallocation | |
Accessory class to update pointers after eventual reallocation caused by adding elements.
This class is used whenever you trigger some allocation operation that can cause the invalidation of the pointers to mesh elements. Typical situations are when you are allocating new vertexes, edges, halfedges of faces or when you compact their containers to get rid of deleted elements. This object allows you to update an invalidate pointer immediately after an action that invalidate it.
Definition at line 141 of file allocate.h.
|
inline |
return true if the allocation operation that initialized this PointerUpdater has caused a reallocation
Definition at line 163 of file allocate.h.
|
inline |
Update a pointer to an element of a mesh after a reallocation.
The updating is correctly done only if this PointerUpdater have been passed to the corresponing allocation call.
Definition at line 150 of file allocate.h.