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)
 
 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...
 

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
 
std::array< int8_t, 5 > m_pad = {{0, 0, 0, 0, 0}}
 

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 operations::internal::SplitAlternateFacetData
 
class operations::internal::CollapseAlternateFacetData
 
class operations::EdgeOperationData
 
class utils::TupleCellLessThan
 
class utils::TupleInspector
 
class components::internal::MultiMeshFromTag
 

Detailed Description

Definition at line 41 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 
)
inline

Definition at line 100 of file Tuple.hpp.

◆ Tuple() [2/4]

wmtk::Tuple::Tuple ( )
default

◆ Tuple() [3/4]

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

◆ Tuple() [4/4]

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

Member Function Documentation

◆ is_null()

◆ local_eid()

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

Definition at line 51 of file Tuple.hxx.

References m_local_eid.

◆ local_fid()

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

Definition at line 56 of file Tuple.hxx.

References m_local_fid.

◆ local_vid()

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

Definition at line 46 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 29 of file Tuple.hxx.

References m_global_cid, 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_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 34 of file Tuple.hxx.

References m_global_cid, m_local_eid, m_local_fid, and m_local_vid.

Friends And Related Function Documentation

◆ attribute::Accessor

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

Definition at line 60 of file Tuple.hpp.

◆ components::internal::MultiMeshFromTag

Definition at line 67 of file Tuple.hpp.

◆ EdgeMesh

friend class EdgeMesh
friend

Definition at line 55 of file Tuple.hpp.

◆ Mesh

friend class Mesh
friend

Definition at line 53 of file Tuple.hpp.

◆ multimesh::MultiMeshManager

friend class multimesh::MultiMeshManager
friend

Definition at line 58 of file Tuple.hpp.

◆ operations::EdgeOperationData

friend class operations::EdgeOperationData
friend

Definition at line 64 of file Tuple.hpp.

◆ operations::internal::CollapseAlternateFacetData

Definition at line 63 of file Tuple.hpp.

◆ operations::internal::SplitAlternateFacetData

Definition at line 62 of file Tuple.hpp.

◆ operations::Operation

friend class operations::Operation
friend

Definition at line 61 of file Tuple.hpp.

◆ PointMesh

friend class PointMesh
friend

Definition at line 54 of file Tuple.hpp.

◆ TetMesh

friend class TetMesh
friend

Definition at line 57 of file Tuple.hpp.

◆ TriMesh

friend class TriMesh
friend

Definition at line 56 of file Tuple.hpp.

◆ utils::TupleCellLessThan

friend class utils::TupleCellLessThan
friend

Definition at line 65 of file Tuple.hpp.

◆ utils::TupleInspector

friend class utils::TupleInspector
friend

Definition at line 66 of file Tuple.hpp.

Member Data Documentation

◆ m_global_cid

◆ m_local_eid

◆ m_local_fid

◆ m_local_vid

◆ m_pad

std::array<int8_t, 5> wmtk::Tuple::m_pad = {{0, 0, 0, 0, 0}}
private

Definition at line 50 of file Tuple.hpp.


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