Wildmeshing Toolkit
wmtk::RoundedInvariant Class Reference

#include <RoundedInvariant.hpp>

Inheritance diagram for wmtk::RoundedInvariant:
[legend]
Collaboration diagram for wmtk::RoundedInvariant:
[legend]

Public Member Functions

 RoundedInvariant (const Mesh &m, const attribute::TypedAttributeHandle< Rational > &coordinate, bool inverse_flag=false)
 Construct a new Rounded Invariant object. More...
 
bool before (const simplex::Simplex &t) const override
 
 Invariant (const Mesh &m)
 
 Invariant (const Mesh &m, bool use_before, bool use_old_state_in_after, bool use_new_state_in_after)
 
- Public Member Functions inherited from wmtk::invariants::Invariant
virtual bool after (const std::vector< Tuple > &top_dimension_tuples_before, const std::vector< Tuple > &top_dimension_tuples_after) const
 
 Invariant (const Mesh &m)
 
 Invariant (const Mesh &m, bool use_before, bool use_old_state_in_after, bool use_new_state_in_after)
 
virtual ~Invariant ()
 
const Meshmesh () const
 
virtual bool directly_modified_after (const std::vector< simplex::Simplex > &simplices_before, const std::vector< simplex::Simplex > &simplices_after) const
 
bool use_before () const
 
bool use_after () const
 
bool use_old_state_in_after () const
 
bool use_new_state_in_after () const
 

Private Attributes

const attribute::TypedAttributeHandle< Rationalm_coordinate_handle
 
bool inverse = false
 

Detailed Description

Definition at line 7 of file RoundedInvariant.hpp.

Constructor & Destructor Documentation

◆ RoundedInvariant()

wmtk::RoundedInvariant::RoundedInvariant ( const Mesh m,
const attribute::TypedAttributeHandle< Rational > &  coordinate,
bool  inverse_flag = false 
)

Construct a new Rounded Invariant object.

Parameters
m
coordinate
inverseif set to false, return true if rounded; if set to true, return false if rounded

Definition at line 8 of file RoundedInvariant.cpp.

Member Function Documentation

◆ before()

bool wmtk::RoundedInvariant::before ( const simplex::Simplex t) const
overridevirtual

Reimplemented from wmtk::invariants::Invariant.

Definition at line 17 of file RoundedInvariant.cpp.

References wmtk::Mesh::create_const_accessor(), wmtk::Mesh::get_attribute_dimension(), inverse, m_coordinate_handle, wmtk::invariants::Invariant::mesh(), and wmtk::simplex::Simplex::tuple().

Here is the call graph for this function:

◆ Invariant() [1/2]

wmtk::invariants::Invariant::Invariant

Definition at line 23 of file Invariant.cpp.

◆ Invariant() [2/2]

wmtk::invariants::Invariant::Invariant

Definition at line 24 of file Invariant.cpp.

Member Data Documentation

◆ inverse

bool wmtk::RoundedInvariant::inverse = false
private

Definition at line 28 of file RoundedInvariant.hpp.

Referenced by before().

◆ m_coordinate_handle

const attribute::TypedAttributeHandle<Rational> wmtk::RoundedInvariant::m_coordinate_handle
private

Definition at line 27 of file RoundedInvariant.hpp.

Referenced by before().


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