Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes
SMESH_EXPORT::DimPredicate Struct Reference

#include <SMESH_HypoFilter.hxx>

Inheritance diagram for SMESH_EXPORT::DimPredicate:
Inheritance graph
Collaboration diagram for SMESH_EXPORT::DimPredicate:
Collaboration graph

List of all members.

Public Member Functions

 DimPredicate (Comparison comp, int dim)
int Value (const SMESH_Hypothesis *aHyp) const
virtual bool IsOk (const SMESH_Hypothesis *aHyp, const TopoDS_Shape &) const

Public Attributes

Comparison _comp
int _val

Detailed Description

Definition at line 147 of file SMESH_HypoFilter.hxx.

Constructor & Destructor Documentation

SMESH_EXPORT::DimPredicate::DimPredicate ( Comparison  comp,
int  dim 
) [inline]

Definition at line 148 of file SMESH_HypoFilter.hxx.

    { _comp = comp; _val = dim; }

Member Function Documentation

virtual bool SMESH_EXPORT::templPredicate< int >::IsOk ( const SMESH_Hypothesis *  aHyp,
const TopoDS_Shape &   
) const [inline, virtual, inherited]

Definition at line 125 of file SMESH_HypoFilter.hxx.

        if      ( _comp == EQUAL )     return _val == Value( aHyp );
        else if ( _comp == NOT_EQUAL ) return _val != Value( aHyp );
        else if ( _comp == MORE )      return _val < Value( aHyp );
        else                           return _val > Value( aHyp );

Here is the call graph for this function:

int SMESH_EXPORT::DimPredicate::Value ( const SMESH_Hypothesis aHyp) const [virtual]

Member Data Documentation

Definition at line 122 of file SMESH_HypoFilter.hxx.

int SMESH_EXPORT::templPredicate< int >::_val [inherited]

Definition at line 123 of file SMESH_HypoFilter.hxx.

The documentation for this struct was generated from the following file: