Back to index

salome-smesh  6.5.0
StdMeshersGUI_DistrPreview.cxx File Reference
#include "StdMeshersGUI_DistrPreview.h"
#include <qwt_plot_curve.h>
#include <qwt_plot_marker.h>
#include <qwt_plot_grid.h>
#include <qwt_symbol.h>
#include <qwt_legend.h>
#include <Expr_NamedUnknown.hxx>
#include <Expr_GeneralExpression.hxx>
#include <Standard_Failure.hxx>
#include <math.h>
#include <limits>
#include <Basics_Utils.hxx>

Go to the source code of this file.


bool isCorrectArg (const Handle(Expr_GeneralExpression)&expr)

Function Documentation

bool isCorrectArg ( const Handle(Expr_GeneralExpression)&  expr)

Definition at line 349 of file StdMeshersGUI_DistrPreview.cxx.

  Handle( Expr_NamedUnknown ) sub = Handle( Expr_NamedUnknown )::DownCast( expr );
  if( !sub.IsNull() )
    return sub->GetName()=="t";

  bool res = true;
  for( int i=1, n=expr->NbSubExpressions(); i<=n && res; i++ )
    Handle( Expr_GeneralExpression ) sub = expr->SubExpression( i );
    Handle( Expr_NamedUnknown ) name = Handle( Expr_NamedUnknown )::DownCast( sub );
    if( !name.IsNull() )
      if( name->GetName()!="t" )
        res = false;
      res = isCorrectArg( sub );
  return res;

Here is the call graph for this function: