Back to index

salome-smesh  6.5.0
Defines | Typedefs | Functions
SMESH_Group_i.cxx File Reference
#include "SMESH_Group_i.hxx"
#include "SMDSAbs_ElementType.hxx"
#include "SMESHDS_Group.hxx"
#include "SMESHDS_GroupOnFilter.hxx"
#include "SMESHDS_GroupOnGeom.hxx"
#include "SMESH_Comment.hxx"
#include "SMESH_Filter_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Group.hxx"
#include "SMESH_Mesh_i.hxx"
#include "SMESH_PythonDump.hxx"
#include "SMESH_PreMeshInfo.hxx"
#include "utilities.h"

Go to the source code of this file.

Defines

#define SEPAR   '^'

Typedefs

typedef bool(SMESHDS_Group::* TFunChangeGroup )(const int)

Functions

CORBA::Long ChangeByPredicate (SMESH::Predicate_i *thePredicate, SMESHDS_GroupBase *theGroupBase, TFunChangeGroup theFun)

Define Documentation

#define SEPAR   '^'

Definition at line 794 of file SMESH_Group_i.cxx.


Typedef Documentation

typedef bool(SMESHDS_Group::* TFunChangeGroup)(const int)

Definition at line 349 of file SMESH_Group_i.cxx.


Function Documentation

CORBA::Long ChangeByPredicate ( SMESH::Predicate_i *  thePredicate,
SMESHDS_GroupBase *  theGroupBase,
TFunChangeGroup  theFun 
)

Definition at line 352 of file SMESH_Group_i.cxx.

{
  CORBA::Long aNb = 0;
  if(SMESHDS_Group* aGroupDS = dynamic_cast<SMESHDS_Group*>(theGroupBase)){
    SMESH::Controls::Filter::TIdSequence aSequence;
    const SMDS_Mesh* aMesh = theGroupBase->GetMesh();
    SMESH::Filter_i::GetElementsId(thePredicate,aMesh,aSequence);
    
    CORBA::Long i = 0, iEnd = aSequence.size();
    for(; i < iEnd; i++)
      if((aGroupDS->*theFun)(aSequence[i]))
        aNb++;
    return aNb;
  }
  return aNb;
}

Here is the call graph for this function: