Wildmeshing Toolkit
wmtk::components::TagAttribute Class Reference

#include <TagIntersection.hpp>

Collaboration diagram for wmtk::components::TagAttribute:
[legend]

Public Member Functions

 TagAttribute (Mesh &m, const attribute::MeshAttributeHandle &attribute, PrimitiveType ptype, int64_t val)
 
 TagAttribute (TagAttribute &)=delete
 
 TagAttribute (Mesh &m, const attribute::MeshAttributeHandle &attribute, PrimitiveType ptype, int64_t val)
 
 TagAttribute (TagAttribute &)=delete
 
is_tagged

if a given simplex is not the current attributehandle's primitivetype, return false.

otherwise check if a given simplex's attribute is tagged, if yes return true, else return false.

Parameters
mmesh
ssimplex
bool is_tagged (Mesh &m, const simplex::Simplex &s) const
 
set_tag

first check if the given simplex's primitivetype is equal to the attibutehandle's.

if yes, then tag this simplex with the given tag_val, otherwise do nothing.

Parameters
mmesh
ssimplex
void set_tag (Mesh &m, const simplex::Simplex &s)
 

Public Attributes

wmtk::attribute::Accessor< int64_t > m_accessor
 
PrimitiveType m_ptype
 
int64_t m_val
 
attribute::Accessor< int64_t > m_tag_accessor
 
int64_t m_tag_val
 

Detailed Description

Definition at line 17 of file Marching.cpp.

Constructor & Destructor Documentation

◆ TagAttribute() [1/4]

wmtk::components::TagAttribute::TagAttribute ( Mesh m,
const attribute::MeshAttributeHandle attribute,
PrimitiveType  ptype,
int64_t  val 
)
inline

Definition at line 24 of file Marching.cpp.

◆ TagAttribute() [2/4]

wmtk::components::TagAttribute::TagAttribute ( TagAttribute )
delete

◆ TagAttribute() [3/4]

wmtk::components::TagAttribute::TagAttribute ( Mesh m,
const attribute::MeshAttributeHandle attribute,
PrimitiveType  ptype,
int64_t  val 
)
inline

Definition at line 25 of file TagIntersection.hpp.

◆ TagAttribute() [4/4]

wmtk::components::TagAttribute::TagAttribute ( TagAttribute )
delete

Member Function Documentation

◆ is_tagged()

bool wmtk::components::TagAttribute::is_tagged ( Mesh m,
const simplex::Simplex s 
) const
inline

Definition at line 45 of file TagIntersection.hpp.

References wmtk::attribute::Accessor< T, MeshType, Dim >::const_scalar_attribute(), m_ptype, m_tag_accessor, m_tag_val, wmtk::simplex::Simplex::primitive_type(), and wmtk::simplex::Simplex::tuple().

Here is the call graph for this function:

◆ set_tag()

void wmtk::components::TagAttribute::set_tag ( Mesh m,
const simplex::Simplex s 
)
inline

Definition at line 60 of file TagIntersection.hpp.

References m_ptype, m_tag_accessor, m_tag_val, wmtk::simplex::Simplex::primitive_type(), wmtk::attribute::Accessor< T, MeshType, Dim >::scalar_attribute(), and wmtk::simplex::Simplex::tuple().

Here is the call graph for this function:

Member Data Documentation

◆ m_accessor

wmtk::attribute::Accessor<int64_t> wmtk::components::TagAttribute::m_accessor

Definition at line 20 of file Marching.cpp.

◆ m_ptype

PrimitiveType wmtk::components::TagAttribute::m_ptype

Definition at line 21 of file Marching.cpp.

Referenced by is_tagged(), and set_tag().

◆ m_tag_accessor

attribute::Accessor<int64_t> wmtk::components::TagAttribute::m_tag_accessor

Definition at line 21 of file TagIntersection.hpp.

Referenced by is_tagged(), and set_tag().

◆ m_tag_val

int64_t wmtk::components::TagAttribute::m_tag_val

Definition at line 23 of file TagIntersection.hpp.

Referenced by is_tagged(), and set_tag().

◆ m_val

int64_t wmtk::components::TagAttribute::m_val

Definition at line 22 of file Marching.cpp.


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