hexed 0.3.0
 
Loading...
Searching...
No Matches
hexed::Vertex::Non_transferable_ptr Class Reference

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_ptroperator= (const Non_transferable_ptr &)
 
 operator bool () const
 return true if vertex this points to exists and false if it does not
 
Vertexoperator-> ()
 Warning: if operator bool is false the following will return nullptr!
 
Vertexoperator* ()
 
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)
 

Detailed Description

A pointer class which is not transferred by Vertex::eat.

This is used by Deformed_grid to maintain a list of vertices without duplicates.


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