Version: 6.3.1
Public Member Functions | Data Fields

SMESH_HypoFilter.templPredicate< TValue > Struct Template Reference

#include <SMESH_HypoFilter.hxx>

Inheritance diagram for SMESH_HypoFilter.templPredicate< TValue >:
Inheritance graph
[legend]

Public Member Functions

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

Data Fields

Comparison _comp
TValue _val

Detailed Description

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

Definition at line 118 of file SMESH_HypoFilter.hxx.


Member Function Documentation

template<typename TValue>
virtual bool SMESH_HypoFilter.templPredicate< TValue >.IsOk ( const SMESH_Hypothesis aHyp,
const TopoDS_Shape &   
) const [virtual]

Implements SMESH_HypoPredicate.

Definition at line 122 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_HypoFilter.templPredicate< TValue >.Value ( const SMESH_Hypothesis aHyp) const [pure virtual]

Field Documentation

template<typename TValue>
Comparison SMESH_HypoFilter.templPredicate< TValue >._comp

Definition at line 119 of file SMESH_HypoFilter.hxx.

template<typename TValue>
TValue SMESH_HypoFilter.templPredicate< TValue >._val

Definition at line 120 of file SMESH_HypoFilter.hxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS