Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes
SMESH_EXPORT::templPredicate< TValue > Struct Template Reference

#include <SMESH_HypoFilter.hxx>

Inheritance diagram for SMESH_EXPORT::templPredicate< TValue >:
Inheritance graph
[legend]
Collaboration diagram for SMESH_EXPORT::templPredicate< TValue >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual TValue Value (const SMESH_Hypothesis *aHyp) const =0
virtual bool IsOk (const SMESH_Hypothesis *aHyp, const TopoDS_Shape &) const

Public Attributes

Comparison _comp
TValue _val

Detailed Description

template<typename TValue>
struct SMESH_EXPORT::templPredicate< TValue >

Definition at line 121 of file SMESH_HypoFilter.hxx.


Member Function Documentation

template<typename TValue>
virtual bool SMESH_EXPORT::templPredicate< TValue >::IsOk ( const SMESH_Hypothesis aHyp,
const TopoDS_Shape &   
) const [inline, virtual]

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 );
      }
template<typename TValue>
virtual TValue SMESH_EXPORT::templPredicate< TValue >::Value ( const SMESH_Hypothesis aHyp) const [pure virtual]

Implemented in SMESH_EXPORT::DimPredicate, and SMESH_EXPORT::TypePredicate.

Here is the caller graph for this function:


Member Data Documentation

template<typename TValue>
Comparison SMESH_EXPORT::templPredicate< TValue >::_comp

Definition at line 122 of file SMESH_HypoFilter.hxx.

template<typename TValue>
TValue SMESH_EXPORT::templPredicate< TValue >::_val

Definition at line 123 of file SMESH_HypoFilter.hxx.


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