Back to index

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

#include <SMESH_HypoFilter.hxx>

Inheritance diagram for SMESH_EXPORT::TypePredicate:
Inheritance graph
Collaboration diagram for SMESH_EXPORT::TypePredicate:
Collaboration graph

List of all members.

Public Member Functions

 TypePredicate (Comparison comp, int hypType)
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 141 of file SMESH_HypoFilter.hxx.

Constructor & Destructor Documentation

SMESH_EXPORT::TypePredicate::TypePredicate ( Comparison  comp,
int  hypType 
) [inline]

Definition at line 142 of file SMESH_HypoFilter.hxx.

    { _comp = comp; _val = hypType; }

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::TypePredicate::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: