Back to index

salome-med  6.5.0
Public Member Functions | Private Attributes
SauvUtilities::CellsByDimIterator Class Reference

More...

#include <SauvMedConvertor.hxx>

Collaboration diagram for SauvUtilities::CellsByDimIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CellsByDimIterator (const IntermediateMED &medi, int dim=-1)
 CellsByDimIterator constructor.
void init (const int dim=-1)
 return next set of Cell's of required dimension
const std::set< Cell > * nextType ()
 return dimension of Cell's returned by the last or further next()
int dim (const bool last=true) const
 return type of Cell's returned by the last next()
TCellType type () const

Private Attributes

const IntermediateMEDmyImed
int myCurType
int myTypeEnd
int myDim

Detailed Description

Definition at line 175 of file SauvMedConvertor.hxx.


Constructor & Destructor Documentation

CellsByDimIterator::CellsByDimIterator ( const IntermediateMED medi,
int  dim = -1 
)

CellsByDimIterator constructor.

Definition at line 2404 of file SauvMedConvertor.cxx.

{
  myImed = & medi;
  init( dimm );
}

Member Function Documentation

int CellsByDimIterator::dim ( const bool  last = true) const

return type of Cell's returned by the last next()

return dimension of cells returned by the last or further next()

Definition at line 2431 of file SauvMedConvertor.cxx.

{
  int typp = myCurType;
  if ( !last )
    while ( typp < myTypeEnd && myImed->_cellsByType[typp].empty() )
      ++typp;
  return typp < myTypeEnd ? getDimension( TCellType( typp )) : 4;
}

Here is the call graph for this function:

void CellsByDimIterator::init ( const int  dim = -1)

return next set of Cell's of required dimension

Initialize iteration on cells of given dimention.

Definition at line 2412 of file SauvMedConvertor.cxx.

Here is the caller graph for this function:

const std::set< Cell > * CellsByDimIterator::nextType ( )

return dimension of Cell's returned by the last or further next()

return next set of Cell's of required dimension

Definition at line 2421 of file SauvMedConvertor.cxx.

{
  while ( ++myCurType < myTypeEnd )
    if ( !myImed->_cellsByType[myCurType].empty() && ( myDim < 0 || dim(false) == myDim ))
      return & myImed->_cellsByType[myCurType];
  return 0;
}

Here is the caller graph for this function:

Definition at line 186 of file SauvMedConvertor.hxx.

{ return TCellType( myCurType ); }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 190 of file SauvMedConvertor.hxx.

Definition at line 191 of file SauvMedConvertor.hxx.

Definition at line 189 of file SauvMedConvertor.hxx.

Definition at line 190 of file SauvMedConvertor.hxx.


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