Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
EdgeOperation Class Reference

#include <EdgeOperation.hpp>

+ Collaboration diagram for EdgeOperation:

Public Member Functions

 EdgeOperation ()
 
 EdgeOperation (EDGE_OPERATION operation, unsigned elementIndex, EdgeRemapInfo remapInfo, const bool isIndexRemapped=false)
 
 EdgeOperation (unsigned elementIndex, unsigned elementIndex2, EdgeRemapInfo remapInfo, EdgeRemapInfo remapInfo2)
 
EDGE_OPERATION GetOperation () const
 
unsigned GetElementIndex () const
 
void SetElementIndex (const unsigned index)
 
unsigned GetElementIndex2 () const
 
void SetElementIndex2 (const unsigned index)
 
const EdgeRemapInforGetRemapInfo () const
 
const EdgeRemapInforGetRemapInfo2 () const
 
bool IsElementIndexRemapped () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)
 

Private Attributes

EDGE_OPERATION mOperation
 
unsigned mElementIndex
 
unsigned mElementIndex2
 
EdgeRemapInfo mRemapInfo
 
EdgeRemapInfo mRemapInfo2
 
bool mIsElementIndexRemapped
 

Friends

class boost::serialization::access
 

Detailed Description

Class for storing edge operation during remeshing.

Definition at line 62 of file EdgeOperation.hpp.

Constructor & Destructor Documentation

◆ EdgeOperation() [1/3]

EdgeOperation::EdgeOperation ( )

Default constructor.

Definition at line 38 of file EdgeOperation.cpp.

◆ EdgeOperation() [2/3]

EdgeOperation::EdgeOperation ( EDGE_OPERATION  operation,
unsigned  elementIndex,
EdgeRemapInfo  remapInfo,
const bool  isIndexRemapped = false 
)

Constructor for add, split, node and edge merge operations.

Parameters
operationwhich operation was performed
elementIndexindex of the element
remapInforemapping info
isIndexRemappedindicates whether the operation has been recorded before elements changed their indices (defaults to false); e.g. when T2 swap occurs, node merging operation is recorded with element index that will be modified in RemoveDeletedNodesAndELements(). See also VertexBasedCellPopulation::Update().

Definition at line 42 of file EdgeOperation.cpp.

◆ EdgeOperation() [3/3]

EdgeOperation::EdgeOperation ( unsigned  elementIndex,
unsigned  elementIndex2,
EdgeRemapInfo  remapInfo,
EdgeRemapInfo  remapInfo2 
)

Constructor for the DIVIDE operation.

Parameters
elementIndexan element index
elementIndex2another element index
remapInfoedge remap info
remapInfo2edge remap info after cell division

Definition at line 55 of file EdgeOperation.cpp.

Member Function Documentation

◆ GetElementIndex()

unsigned EdgeOperation::GetElementIndex ( ) const
Returns
Element index on which edge operation has been performed. Also index (inherited from mother cell) of the first daughter cell.

Definition at line 73 of file EdgeOperation.cpp.

References mElementIndex.

◆ GetElementIndex2()

unsigned EdgeOperation::GetElementIndex2 ( ) const
Returns
Element index of the second daughter cell

Definition at line 83 of file EdgeOperation.cpp.

References mElementIndex2.

◆ GetOperation()

EDGE_OPERATION EdgeOperation::GetOperation ( ) const
Returns
edge operations

Definition at line 68 of file EdgeOperation.cpp.

References mOperation.

◆ IsElementIndexRemapped()

bool EdgeOperation::IsElementIndexRemapped ( ) const
Returns
mIsElementIndexRemapped

Definition at line 103 of file EdgeOperation.cpp.

References mIsElementIndexRemapped.

◆ rGetRemapInfo()

const EdgeRemapInfo & EdgeOperation::rGetRemapInfo ( ) const
Returns
Edge remap info

Definition at line 93 of file EdgeOperation.cpp.

References mRemapInfo.

◆ rGetRemapInfo2()

const EdgeRemapInfo & EdgeOperation::rGetRemapInfo2 ( ) const
Returns
Edge remap info after cell division

Definition at line 98 of file EdgeOperation.cpp.

References mRemapInfo2.

◆ serialize()

template<class Archive >
void EdgeOperation::serialize ( Archive &  archive,
const unsigned int  version 
)
inlineprivate

Archive the object.

Parameters
archivethe archive
versionthe current version of this class

Definition at line 96 of file EdgeOperation.hpp.

References mElementIndex, mElementIndex2, mIsElementIndexRemapped, mOperation, mRemapInfo, and mRemapInfo2.

◆ SetElementIndex()

void EdgeOperation::SetElementIndex ( const unsigned  index)

Modify element index on which edge operation has been performed.

Parameters
indexan element index

Definition at line 78 of file EdgeOperation.cpp.

References mElementIndex.

◆ SetElementIndex2()

void EdgeOperation::SetElementIndex2 ( const unsigned  index)

Modify element index of the second daughter cell.

Parameters
indexan element index

Definition at line 88 of file EdgeOperation.cpp.

References mElementIndex2.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Needed for serialization.

Definition at line 88 of file EdgeOperation.hpp.

Member Data Documentation

◆ mElementIndex

unsigned EdgeOperation::mElementIndex
private

Index of one element sharing the edge.

Definition at line 70 of file EdgeOperation.hpp.

Referenced by GetElementIndex(), serialize(), and SetElementIndex().

◆ mElementIndex2

unsigned EdgeOperation::mElementIndex2
private

Index of another element sharing the edge.

Definition at line 73 of file EdgeOperation.hpp.

Referenced by GetElementIndex2(), serialize(), and SetElementIndex2().

◆ mIsElementIndexRemapped

bool EdgeOperation::mIsElementIndexRemapped
private

If operation is recorded before element indices are changed. For example, if the operations recorded during T2 swap.

Definition at line 85 of file EdgeOperation.hpp.

Referenced by IsElementIndexRemapped(), and serialize().

◆ mOperation

EDGE_OPERATION EdgeOperation::mOperation
private

Type of edge operation.

Definition at line 67 of file EdgeOperation.hpp.

Referenced by GetOperation(), and serialize().

◆ mRemapInfo

EdgeRemapInfo EdgeOperation::mRemapInfo
private

Edge remap info.

Definition at line 76 of file EdgeOperation.hpp.

Referenced by rGetRemapInfo(), and serialize().

◆ mRemapInfo2

EdgeRemapInfo EdgeOperation::mRemapInfo2
private

Edge remap info after cell division.

Definition at line 79 of file EdgeOperation.hpp.

Referenced by rGetRemapInfo2(), and serialize().


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