Wildmeshing Toolkit
wmtk::Tuple Class Reference

#include <Tuple.hpp>

Public Member Functions

 Tuple (int8_t local_vid, int8_t local_eid, int8_t local_fid, int64_t global_cid, int8_t hash)
 
 Tuple ()=default
 
 Tuple (const Tuple &other)=default
 
 Tuple (Tuple &&other)=default
 
Tupleoperator= (const Tuple &other)=default
 
Tupleoperator= (Tuple &&other)=default
 
bool operator== (const Tuple &t) const
 
bool operator!= (const Tuple &t) const
 
bool operator< (const Tuple &t) const
 
bool same_ids (const Tuple &t) const
 Checks whether two tuples are equal, but ignores the hash. More...
 
bool is_null () const
 Checks if a tuple is "null". This merely implies the global index is -1. More...
 
Tuple with_updated_hash (int64_t new_hash) const
 

Private Member Functions

int8_t local_vid () const
 
int8_t local_eid () const
 
int8_t local_fid () const
 

Private Attributes

int64_t m_global_cid = -1
 
int8_t m_local_vid = -1
 
int8_t m_local_eid = -1
 
int8_t m_local_fid = -1
 
int8_t m_hash = -1
 

Friends

class Mesh
 
class PointMesh
 
class EdgeMesh
 
class TriMesh
 
class TetMesh
 
class multimesh::MultiMeshManager
 
template<typename T , typename MeshType , int Dim>
class attribute::Accessor
 
class operations::Operation
 
class utils::TupleCellLessThan
 
class utils::TupleInspector
 
class components::internal::MultiMeshFromTag
 

Detailed Description

Definition at line 36 of file Tuple.hpp.

Constructor & Destructor Documentation

◆ Tuple() [1/4]

wmtk::Tuple::Tuple ( int8_t  local_vid,
int8_t  local_eid,
int8_t  local_fid,
int64_t  global_cid,
int8_t  hash 
)
inline

Definition at line 93 of file Tuple.hpp.

◆ Tuple() [2/4]

wmtk::Tuple::Tuple ( )
default

Referenced by with_updated_hash().

Here is the caller graph for this function:

◆ Tuple() [3/4]

wmtk::Tuple::Tuple ( const Tuple other)
default

◆ Tuple() [4/4]

wmtk::Tuple::Tuple ( Tuple &&  other)
default

Member Function Documentation

◆ is_null()

bool wmtk::Tuple::is_null ( ) const
inline

Checks if a tuple is "null". This merely implies the global index is -1.

Definition at line 39 of file Tuple.hxx.

References m_global_cid.

Referenced by wmtk::TetMesh::is_valid(), wmtk::TriMesh::is_valid(), wmtk::EdgeMesh::is_valid(), wmtk::PointMesh::is_valid(), wmtk::operations::utils::UpdateEdgeOperationMultiMeshMapFunctor::update_ear_replacement(), and wmtk::multimesh::MultiMeshManager::update_map_tuple_hashes().

Here is the caller graph for this function:

◆ local_eid()

int8_t wmtk::Tuple::local_eid ( ) const
inlineprivate

Definition at line 54 of file Tuple.hxx.

References m_local_eid.

◆ local_fid()

int8_t wmtk::Tuple::local_fid ( ) const
inlineprivate

Definition at line 59 of file Tuple.hxx.

References m_local_fid.

◆ local_vid()

int8_t wmtk::Tuple::local_vid ( ) const
inlineprivate

Definition at line 49 of file Tuple.hxx.

References m_local_vid.

◆ operator!=()

bool wmtk::Tuple::operator!= ( const Tuple t) const
inline

Definition at line 18 of file Tuple.hxx.

◆ operator<()

bool wmtk::Tuple::operator< ( const Tuple t) const
inline

Definition at line 28 of file Tuple.hxx.

References m_global_cid, m_hash, m_local_eid, m_local_fid, and m_local_vid.

◆ operator=() [1/2]

Tuple& wmtk::Tuple::operator= ( const Tuple other)
default

◆ operator=() [2/2]

Tuple& wmtk::Tuple::operator= ( Tuple &&  other)
default

◆ operator==()

bool wmtk::Tuple::operator== ( const Tuple t) const
inline

Definition at line 22 of file Tuple.hxx.

References m_global_cid, m_hash, m_local_eid, m_local_fid, and m_local_vid.

◆ same_ids()

bool wmtk::Tuple::same_ids ( const Tuple t) const
inline

Checks whether two tuples are equal, but ignores the hash.

Definition at line 33 of file Tuple.hxx.

References m_global_cid, m_local_eid, m_local_fid, and m_local_vid.

◆ with_updated_hash()

Tuple wmtk::Tuple::with_updated_hash ( int64_t  new_hash) const
inline

Definition at line 44 of file Tuple.hxx.

References m_global_cid, m_local_eid, m_local_fid, m_local_vid, and Tuple().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ attribute::Accessor

template<typename T , typename MeshType , int Dim>
friend class attribute::Accessor
friend

Definition at line 55 of file Tuple.hpp.

◆ components::internal::MultiMeshFromTag

Definition at line 59 of file Tuple.hpp.

◆ EdgeMesh

friend class EdgeMesh
friend

Definition at line 50 of file Tuple.hpp.

◆ Mesh

friend class Mesh
friend

Definition at line 48 of file Tuple.hpp.

◆ multimesh::MultiMeshManager

friend class multimesh::MultiMeshManager
friend

Definition at line 53 of file Tuple.hpp.

◆ operations::Operation

friend class operations::Operation
friend

Definition at line 56 of file Tuple.hpp.

◆ PointMesh

friend class PointMesh
friend

Definition at line 49 of file Tuple.hpp.

◆ TetMesh

friend class TetMesh
friend

Definition at line 52 of file Tuple.hpp.

◆ TriMesh

friend class TriMesh
friend

Definition at line 51 of file Tuple.hpp.

◆ utils::TupleCellLessThan

friend class utils::TupleCellLessThan
friend

Definition at line 57 of file Tuple.hpp.

◆ utils::TupleInspector

friend class utils::TupleInspector
friend

Definition at line 58 of file Tuple.hpp.

Member Data Documentation

◆ m_global_cid

◆ m_hash

◆ m_local_eid

◆ m_local_fid

◆ m_local_vid


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