splitCell Class Reference

Description of cell after splitting. Contains cellLabel and pointers to cells it it split in. See directedRefinement. More...

Public Member Functions

 splitCell (const label celli, splitCell *parent)
 Construct from cell number and parent. More...
 
 splitCell (const splitCell &)=delete
 Disallow default bitwise copy construction. More...
 
 ~splitCell ()
 Destructor. More...
 
label cellLabel () const
 
labelcellLabel ()
 
splitCellparent () const
 
splitCell *& parent ()
 
splitCellmaster () const
 
splitCell *& master ()
 
splitCellslave () const
 
splitCell *& slave ()
 
bool isMaster () const
 Check if this is master cell of split. More...
 
bool isUnrefined () const
 Check if this is unrefined (i.e. has no master or slave) More...
 
splitCellgetOther () const
 Returns other half of split cell. I.e. slave if this is master. More...
 
void operator= (const splitCell &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

Description of cell after splitting. Contains cellLabel and pointers to cells it it split in. See directedRefinement.

Source files

Definition at line 51 of file splitCell.H.

Constructor & Destructor Documentation

◆ splitCell() [1/2]

splitCell ( const label  celli,
splitCell parent 
)

Construct from cell number and parent.

Definition at line 32 of file splitCell.C.

◆ splitCell() [2/2]

splitCell ( const splitCell )
delete

Disallow default bitwise copy construction.

◆ ~splitCell()

~splitCell ( )

Destructor.

Definition at line 43 of file splitCell.C.

References Foam::abort(), splitCell::cellLabel(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, splitCell::master(), splitCell::parent(), and splitCell::slave().

Here is the call graph for this function:

Member Function Documentation

◆ cellLabel() [1/2]

label cellLabel ( ) const
inline

◆ cellLabel() [2/2]

label& cellLabel ( )
inline

Definition at line 92 of file splitCell.H.

◆ parent() [1/2]

◆ parent() [2/2]

splitCell*& parent ( )
inline

Definition at line 102 of file splitCell.H.

◆ master() [1/2]

splitCell* master ( ) const
inline

Definition at line 107 of file splitCell.H.

Referenced by splitCell::getOther(), splitCell::isMaster(), splitCell::isUnrefined(), undoableMeshCutter::setRefinement(), and splitCell::~splitCell().

Here is the caller graph for this function:

◆ master() [2/2]

splitCell*& master ( )
inline

Definition at line 112 of file splitCell.H.

◆ slave() [1/2]

splitCell* slave ( ) const
inline

Definition at line 117 of file splitCell.H.

Referenced by splitCell::getOther(), splitCell::isMaster(), splitCell::isUnrefined(), undoableMeshCutter::setRefinement(), and splitCell::~splitCell().

Here is the caller graph for this function:

◆ slave() [2/2]

splitCell*& slave ( )
inline

Definition at line 122 of file splitCell.H.

References splitCell::getOther(), splitCell::isMaster(), splitCell::isUnrefined(), and splitCell::operator=().

Here is the call graph for this function:

◆ isMaster()

bool isMaster ( ) const

Check if this is master cell of split.

Definition at line 70 of file splitCell.C.

References Foam::abort(), splitCell::cellLabel(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, splitCell::master(), splitCell::parent(), and splitCell::slave().

Referenced by undoableMeshCutter::getAddedCells(), undoableMeshCutter::getSplitFaces(), and splitCell::slave().

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

◆ isUnrefined()

bool isUnrefined ( ) const

Check if this is unrefined (i.e. has no master or slave)

Definition at line 100 of file splitCell.C.

References splitCell::master(), and splitCell::slave().

Referenced by undoableMeshCutter::getAddedCells(), undoableMeshCutter::getSplitFaces(), undoableMeshCutter::removeSplitFaces(), and splitCell::slave().

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

◆ getOther()

Foam::splitCell * getOther ( ) const

Returns other half of split cell. I.e. slave if this is master.

Definition at line 106 of file splitCell.C.

References Foam::abort(), splitCell::cellLabel(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, splitCell::master(), splitCell::parent(), and splitCell::slave().

Referenced by undoableMeshCutter::getAddedCells(), undoableMeshCutter::getSplitFaces(), splitCell::slave(), and undoableMeshCutter::~undoableMeshCutter().

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

◆ operator=()

void operator= ( const splitCell )
delete

Disallow default bitwise assignment.

Referenced by splitCell::slave().

Here is the caller graph for this function:

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