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

A pointer class which can be transferred by Vertex::eat. More...

#include <Vertex.hpp>

Public Member Functions

 Transferable_ptr (Mat< 3 > pos, bool mobile=false)
 Create a vertex and construct a Transferable_ptr to it.
 
 Transferable_ptr (const Transferable_ptr &)
 copy semantics creates another pointer to the same vertex
 
Transferable_ptroperator= (const Transferable_ptr &)
 
Vertexoperator-> ()
 
const Vertexoperator-> () const
 
Vertexoperator* ()
 
const Vertexoperator* () const
 

Public Attributes

double shareable_value
 use this member to store a value that should be synchronized among all elements sharing this vertex
 
const bool mobile
 whether this Transferable_ptr wants its vertex to be mobile
 
bool needs_smooth = true
 whether this element needs this vertex to be smoothed
 
double fix_admis_coef = 0
 

Detailed Description

A pointer class which can be transferred by Vertex::eat.

This is used by Deformed_element to track its vertices, which are initially separate and then eat those of neighboring elements as the grid connectivity is established. All Transferable_ptrs to a vertex collectively own it—it will be destroyed with the last of its Transferable_ptrs.

Member Data Documentation

◆ needs_smooth

bool hexed::Vertex::Transferable_ptr::needs_smooth = true

whether this element needs this vertex to be smoothed

(Accessible_mesh::update will set this to false for elements that have already been sufficiently smoothed)


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