Public Member Functions | Static Public Member Functions | List of all members
edgeFaceCirculator Class Reference

Walks from starting face around edge. More...

Public Member Functions

 edgeFaceCirculator (const primitiveMesh &mesh, const label faceLabel, const bool ownerSide, const label index, const bool isBoundaryEdge)
 
 edgeFaceCirculator (const edgeFaceCirculator &circ)
 
label faceLabel () const
 
bool isInternalFace () const
 
bool ownerSide () const
 
label index () const
 
label cellLabel () const
 
bool sameOrder (const label v0, const label v1) const
 
void setCanonical ()
 
void operator= (const edgeFaceCirculator &iter)
 
bool operator== (const edgeFaceCirculator &iter) const
 
bool operator!= (const edgeFaceCirculator &iter) const
 
edgeFaceCirculatoroperator++ ()
 
edgeFaceCirculator begin () const
 
edgeFaceCirculator cbegin () const
 
const edgeFaceCirculator end () const
 
const edgeFaceCirculator cend () const
 

Static Public Member Functions

static label getMinIndex (const face &f, const label v0, const label v1)
 

Detailed Description

Walks from starting face around edge.

Implicit description of edge:

  1. Use in-place:
    edgeFaceCirculator circ(..);
    // Optionally rotate to beginning: circ.setCanonical();
    // Walk
    do
    {
    Info<< "face:" << circ.face() << endl;
    ++circ;
    }
    while (circ != circ.end());
  2. Use like STL iterator:
    edgeFaceCirculator circ(..);
    for
    (
    edgeFaceCirculator iter = circ.begin();
    iter != circ.end();
    ++iter
    )
    {
    Info<< "face:" << iter.face() << endl;
    }
Source files

Definition at line 84 of file edgeFaceCirculator.H.

Constructor & Destructor Documentation

◆ edgeFaceCirculator() [1/2]

edgeFaceCirculator ( const primitiveMesh mesh,
const label  faceLabel,
const bool  ownerSide,
const label  index,
const bool  isBoundaryEdge 
)
inline

Definition at line 105 of file edgeFaceCirculatorI.H.

◆ edgeFaceCirculator() [2/2]

edgeFaceCirculator ( const edgeFaceCirculator circ)
inline

Definition at line 122 of file edgeFaceCirculatorI.H.

Member Function Documentation

◆ getMinIndex()

Foam::label getMinIndex ( const face f,
const label  v0,
const label  v1 
)
inlinestatic

Definition at line 136 of file edgeFaceCirculatorI.H.

References f().

Here is the call graph for this function:

◆ faceLabel()

Foam::label faceLabel ( ) const
inline

Definition at line 166 of file edgeFaceCirculatorI.H.

◆ isInternalFace()

bool isInternalFace ( ) const
inline

Definition at line 172 of file edgeFaceCirculatorI.H.

◆ ownerSide()

bool ownerSide ( ) const
inline

Definition at line 183 of file edgeFaceCirculatorI.H.

◆ index()

Foam::label index ( ) const
inline

Definition at line 189 of file edgeFaceCirculatorI.H.

◆ cellLabel()

Foam::label cellLabel ( ) const
inline

Definition at line 195 of file edgeFaceCirculatorI.H.

References polyMesh::faceNeighbour(), polyMesh::faceOwner(), and mesh.

Here is the call graph for this function:

◆ sameOrder()

bool sameOrder ( const label  v0,
const label  v1 
) const
inline

Definition at line 210 of file edgeFaceCirculatorI.H.

References Foam::abort(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, and mesh.

Here is the call graph for this function:

◆ setCanonical()

void setCanonical ( )
inline

◆ operator=()

void operator= ( const edgeFaceCirculator iter)
inline

Definition at line 334 of file edgeFaceCirculatorI.H.

◆ operator==()

bool operator== ( const edgeFaceCirculator iter) const
inline

Definition at line 344 of file edgeFaceCirculatorI.H.

◆ operator!=()

bool operator!= ( const edgeFaceCirculator iter) const
inline

Definition at line 364 of file edgeFaceCirculatorI.H.

◆ operator++()

Foam::edgeFaceCirculator & operator++ ( )
inline

Definition at line 374 of file edgeFaceCirculatorI.H.

References Foam::abort(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::FatalError, FatalErrorInFunction, mesh, and Foam::meshTools::otherFace().

Here is the call graph for this function:

◆ begin()

Foam::edgeFaceCirculator begin ( ) const
inline

Definition at line 420 of file edgeFaceCirculatorI.H.

References edgeFaceCirculator::setCanonical().

Here is the call graph for this function:

◆ cbegin()

Foam::edgeFaceCirculator cbegin ( ) const
inline

Definition at line 439 of file edgeFaceCirculatorI.H.

References edgeFaceCirculator::setCanonical().

Here is the call graph for this function:

◆ end()

const Foam::edgeFaceCirculator end ( ) const
inline

Definition at line 458 of file edgeFaceCirculatorI.H.

◆ cend()

const Foam::edgeFaceCirculator cend ( ) const
inline

Definition at line 463 of file edgeFaceCirculatorI.H.


The documentation for this class was generated from the following files:
Foam::endl
Ostream & endl(Ostream &os)
Definition: Ostream.H:381
Foam::Info
messageStream Info