A pointer class which is not transferred by Vertex::eat
.
More...
#include <Vertex.hpp>
Public Member Functions | |
Non_transferable_ptr (Vertex &) | |
Non_transferable_ptr (const Non_transferable_ptr &) | |
Non_transferable_ptr & | operator= (const Non_transferable_ptr &) |
operator bool () const | |
return true if vertex this points to exists and false if it does not | |
Vertex * | operator-> () |
Warning: if operator bool is false the following will return nullptr ! | |
Vertex & | operator* () |
void | nullify () |
assert that the vertex this points to no longer exists. operator bool will now return false | |
Static Public Member Functions | |
static bool | is_null (const Non_transferable_ptr &ntptr) |
A pointer class which is not transferred by Vertex::eat
.
This is used by Deformed_grid
to maintain a list of vertices without duplicates.