Public Member Functions | Private Member Functions | Private Attributes
splitCell Class Reference

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

Collaboration diagram for splitCell:
Collaboration graph
[legend]

Public Member Functions

 splitCell (const label cellI, splitCell *parent)
 Construct from cell number and parent. 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...
 

Private Member Functions

 splitCell (const splitCell &)
 Disallow default bitwise copy construct. More...
 
void operator= (const splitCell &)
 Disallow default bitwise assignment. More...
 

Private Attributes

label cellI_
 Unsplit cell label. Only uptodate if this cell is 'live'. More...
 
splitCellparent_
 Parent splitCell or null. More...
 
splitCellmaster_
 Cells replacing this or null. More...
 
splitCellslave_
 

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 splitCell )
private

Disallow default bitwise copy construct.

◆ splitCell() [2/2]

splitCell ( const label  cellI,
splitCell parent 
)

Construct from cell number and parent.

Definition at line 32 of file splitCell.C.

◆ ~splitCell()

~splitCell ( )

Destructor.

Definition at line 43 of file splitCell.C.

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

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

void operator= ( const splitCell )
private

Disallow default bitwise assignment.

◆ cellLabel() [1/2]

label cellLabel ( ) const
inline

◆ cellLabel() [2/2]

label& cellLabel ( )
inline

Definition at line 98 of file splitCell.H.

References splitCell::cellI_.

◆ parent() [1/2]

splitCell* parent ( ) const
inline

◆ parent() [2/2]

splitCell*& parent ( )
inline

Definition at line 108 of file splitCell.H.

References splitCell::parent_.

◆ master() [1/2]

splitCell* master ( ) const
inline

Definition at line 113 of file splitCell.H.

References splitCell::master_.

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

Here is the caller graph for this function:

◆ master() [2/2]

splitCell*& master ( )
inline

Definition at line 118 of file splitCell.H.

References splitCell::master_.

◆ slave() [1/2]

splitCell* slave ( ) const
inline

Definition at line 123 of file splitCell.H.

References splitCell::slave_.

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

Here is the caller graph for this function:

◆ slave() [2/2]

splitCell*& slave ( )
inline

Definition at line 128 of file splitCell.H.

References splitCell::slave_.

◆ isMaster()

bool isMaster ( ) const

Check if this is master cell of split.

Definition at line 70 of file splitCell.C.

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

Referenced by undoableMeshCutter::getAddedCells(), undoableMeshCutter::getSplitFaces(), and undoableMeshCutter::printRefTree().

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.

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

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(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, splitCell::master(), and splitCell::slave().

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

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

Field Documentation

◆ cellI_

label cellI_
private

Unsplit cell label. Only uptodate if this cell is 'live'.

(i.e. no master or slave)

Definition at line 57 of file splitCell.H.

Referenced by splitCell::cellLabel().

◆ parent_

splitCell* parent_
private

Parent splitCell or null.

Definition at line 60 of file splitCell.H.

Referenced by splitCell::parent().

◆ master_

splitCell* master_
private

Cells replacing this or null.

Definition at line 63 of file splitCell.H.

Referenced by splitCell::master().

◆ slave_

splitCell* slave_
private

Definition at line 65 of file splitCell.H.

Referenced by splitCell::slave().


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