Wildmeshing Toolkit
wmtk::operations::EdgeOperationData Class Reference

#include <EdgeOperationData.hpp>

Inheritance diagram for wmtk::operations::EdgeOperationData:
[legend]
Collaboration diagram for wmtk::operations::EdgeOperationData:
[legend]

Public Member Functions

 EdgeOperationData ()
 
 ~EdgeOperationData ()
 
 EdgeOperationData (EdgeOperationData &&)
 
EdgeOperationDataoperator= (EdgeOperationData &&)
 
void set_split ()
 
void set_collapse ()
 
const internal::SplitAlternateFacetDataconst_split_facet_data () const
 Returns facet data held if the edge operation was a split - throws if data does not exist. More...
 
const internal::CollapseAlternateFacetDataconst_collapse_facet_data () const
 Returns facet data held if the edge operation was a collapse- throws if data does not exist. More...
 

Public Attributes

Tuple m_operating_tuple
 
Tuple m_output_tuple
 
std::array< int64_t, 2 > m_spine_vids
 
std::vector< std::vector< Tuple > > split_boundary_complex
 
std::vector< std::vector< std::tuple< int64_t, std::vector< Tuple > > > > global_ids_to_potential_tuples
 
std::vector< std::vector< int64_t > > global_ids_to_update
 
std::variant< std::unique_ptr< internal::SplitAlternateFacetData >, std::unique_ptr< internal::CollapseAlternateFacetData > > m_op_data
 

Protected Member Functions

internal::SplitAlternateFacetDatasplit_facet_data ()
 Returns facet data held if the edge operation was a split - throws if data does not exist. More...
 
internal::CollapseAlternateFacetDatacollapse_facet_data ()
 Returns facet data held if the edge operation was a collapse- throws if data does not exist. More...
 

Static Protected Member Functions

static Tuple tuple_from_id (const Mesh &m, const PrimitiveType type, const int64_t gid)
 
static simplex::Simplex simplex_from_id (const Mesh &m, const PrimitiveType type, const int64_t gid)
 
static std::vector< int64_t > request_simplex_indices (Mesh &mesh, const PrimitiveType type, int64_t count)
 

Friends

class internal::SplitAlternateFacetData
 
class internal::CollapseAlternateFacetData
 

Detailed Description

Definition at line 19 of file EdgeOperationData.hpp.

Constructor & Destructor Documentation

◆ EdgeOperationData() [1/2]

wmtk::operations::EdgeOperationData::EdgeOperationData ( )
default

◆ ~EdgeOperationData()

wmtk::operations::EdgeOperationData::~EdgeOperationData ( )
default

◆ EdgeOperationData() [2/2]

wmtk::operations::EdgeOperationData::EdgeOperationData ( EdgeOperationData &&  )
default

Member Function Documentation

◆ collapse_facet_data()

internal::CollapseAlternateFacetData & wmtk::operations::EdgeOperationData::collapse_facet_data ( )
protected

Returns facet data held if the edge operation was a collapse- throws if data does not exist.

Definition at line 63 of file EdgeOperationData.cpp.

References m_op_data.

◆ const_collapse_facet_data()

const internal::CollapseAlternateFacetData & wmtk::operations::EdgeOperationData::const_collapse_facet_data ( ) const

Returns facet data held if the edge operation was a collapse- throws if data does not exist.

Definition at line 45 of file EdgeOperationData.cpp.

References m_op_data.

◆ const_split_facet_data()

const internal::SplitAlternateFacetData & wmtk::operations::EdgeOperationData::const_split_facet_data ( ) const

Returns facet data held if the edge operation was a split - throws if data does not exist.

Definition at line 36 of file EdgeOperationData.cpp.

References m_op_data.

◆ operator=()

EdgeOperationData & wmtk::operations::EdgeOperationData::operator= ( EdgeOperationData &&  )
default

◆ request_simplex_indices()

std::vector< int64_t > wmtk::operations::EdgeOperationData::request_simplex_indices ( Mesh mesh,
const PrimitiveType  type,
int64_t  count 
)
staticprotected

Definition at line 73 of file EdgeOperationData.cpp.

References wmtk::Mesh::guarantee_more_attributes(), and wmtk::Mesh::request_simplex_indices().

Referenced by wmtk::operations::internal::SplitAlternateFacetData::add_facet().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_collapse()

void wmtk::operations::EdgeOperationData::set_collapse ( )

Definition at line 31 of file EdgeOperationData.cpp.

References m_op_data.

◆ set_split()

void wmtk::operations::EdgeOperationData::set_split ( )

Definition at line 27 of file EdgeOperationData.cpp.

References m_op_data.

◆ simplex_from_id()

simplex::Simplex wmtk::operations::EdgeOperationData::simplex_from_id ( const Mesh m,
const PrimitiveType  type,
const int64_t  gid 
)
staticprotected

Definition at line 23 of file EdgeOperationData.cpp.

References wmtk::Mesh::simplex_from_id().

Referenced by wmtk::operations::tet_mesh::EdgeOperationData::new_vertices(), wmtk::operations::tri_mesh::EdgeOperationData::new_vertices(), and wmtk::operations::edge_mesh::EdgeOperationData::new_vertices().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ split_facet_data()

internal::SplitAlternateFacetData & wmtk::operations::EdgeOperationData::split_facet_data ( )
protected

Returns facet data held if the edge operation was a split - throws if data does not exist.

Definition at line 54 of file EdgeOperationData.cpp.

References m_op_data.

◆ tuple_from_id()

Friends And Related Function Documentation

◆ internal::CollapseAlternateFacetData

Definition at line 23 of file EdgeOperationData.hpp.

◆ internal::SplitAlternateFacetData

friend class internal::SplitAlternateFacetData
friend

Definition at line 22 of file EdgeOperationData.hpp.

Member Data Documentation

◆ global_ids_to_potential_tuples

std::vector<std::vector<std::tuple<int64_t, std::vector<Tuple> > > > wmtk::operations::EdgeOperationData::global_ids_to_potential_tuples

◆ global_ids_to_update

std::vector<std::vector<int64_t> > wmtk::operations::EdgeOperationData::global_ids_to_update

Definition at line 42 of file EdgeOperationData.hpp.

◆ m_op_data

std::variant< std::unique_ptr<internal::SplitAlternateFacetData>, std::unique_ptr<internal::CollapseAlternateFacetData> > wmtk::operations::EdgeOperationData::m_op_data

◆ m_operating_tuple

◆ m_output_tuple

Tuple wmtk::operations::EdgeOperationData::m_output_tuple

Definition at line 30 of file EdgeOperationData.hpp.

◆ m_spine_vids

std::array<int64_t, 2> wmtk::operations::EdgeOperationData::m_spine_vids

◆ split_boundary_complex

std::vector<std::vector<Tuple> > wmtk::operations::EdgeOperationData::split_boundary_complex

Definition at line 34 of file EdgeOperationData.hpp.


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