Version: 6.3.1
Public Types | Public Member Functions | Protected Attributes

SMESHDS_Hypothesis Class Reference

#include <SMESHDS_Hypothesis.hxx>

Inheritance diagram for SMESHDS_Hypothesis:
Inheritance graph
[legend]

Public Types

enum  hypothesis_type {
  PARAM_ALGO, ALGO_0D, ALGO_1D, ALGO_2D,
  ALGO_3D
}

Public Member Functions

 SMESHDS_Hypothesis (int hypId)
virtual ~SMESHDS_Hypothesis ()
const char * GetName () const
int GetID () const
int GetType () const
virtual std::ostream & SaveTo (std::ostream &save)=0
virtual std::istream & LoadFrom (std::istream &load)=0
virtual bool operator== (const SMESHDS_Hypothesis &other) const
 Equality.
bool operator!= (const SMESHDS_Hypothesis &other) const

Protected Attributes

std::string _name
int _hypId
int _type

Detailed Description

Definition at line 37 of file SMESHDS_Hypothesis.hxx.


Member Enumeration Documentation

Enumerator:
PARAM_ALGO 
ALGO_0D 
ALGO_1D 
ALGO_2D 
ALGO_3D 

Definition at line 53 of file SMESHDS_Hypothesis.hxx.


Constructor & Destructor Documentation

SMESHDS_Hypothesis::SMESHDS_Hypothesis ( int  hypId)

Definition at line 40 of file SMESHDS_Hypothesis.cxx.

{
  _hypId = hypId;
  _name = "generic";
}
SMESHDS_Hypothesis::~SMESHDS_Hypothesis ( ) [virtual]

Definition at line 52 of file SMESHDS_Hypothesis.cxx.

{
}

Member Function Documentation

int SMESHDS_Hypothesis::GetID ( ) const

Definition at line 73 of file SMESHDS_Hypothesis.cxx.

Referenced by SMESHDS_Document.AddHypothesis(), and SMESH_Mesh_i.GetHypothesisList().

{
  return _hypId;
}
const char * SMESHDS_Hypothesis::GetName ( ) const
int SMESHDS_Hypothesis::GetType ( ) const
virtual std::istream& SMESHDS_Hypothesis.LoadFrom ( std::istream &  load) [pure virtual]
bool SMESHDS_Hypothesis.operator!= ( const SMESHDS_Hypothesis other) const

Definition at line 51 of file SMESHDS_Hypothesis.hxx.

{ return !(*this==other); }
bool SMESHDS_Hypothesis::operator== ( const SMESHDS_Hypothesis other) const [virtual]

Equality.

Definition at line 95 of file SMESHDS_Hypothesis.cxx.

References _name.

{
  if ( this == &other )
    return true;
  if ( _name != other._name )
    return false;
  ostringstream mySave, otherSave;
  ((SMESHDS_Hypothesis*)this  )->SaveTo(mySave);
  ((SMESHDS_Hypothesis*)&other)->SaveTo(otherSave);
  return mySave.str() == otherSave.str();
}
virtual std::ostream& SMESHDS_Hypothesis.SaveTo ( std::ostream &  save) [pure virtual]

Field Documentation

Definition at line 57 of file SMESHDS_Hypothesis.hxx.

Referenced by SMESH_Hypothesis.SMESH_Hypothesis().

std::string SMESHDS_Hypothesis._name [protected]

Definition at line 56 of file SMESHDS_Hypothesis.hxx.

Referenced by operator==(), StdMeshers_Arithmetic1D.StdMeshers_Arithmetic1D(), StdMeshers_AutomaticLength.StdMeshers_AutomaticLength(), StdMeshers_Deflection1D.StdMeshers_Deflection1D(), StdMeshers_FixedPoints1D.StdMeshers_FixedPoints1D(), StdMeshers_ImportSource1D.StdMeshers_ImportSource1D(), StdMeshers_ImportSource2D.StdMeshers_ImportSource2D(), StdMeshers_LayerDistribution.StdMeshers_LayerDistribution(), StdMeshers_LayerDistribution2D.StdMeshers_LayerDistribution2D(), StdMeshers_LengthFromEdges.StdMeshers_LengthFromEdges(), StdMeshers_LocalLength.StdMeshers_LocalLength(), StdMeshers_MaxElementArea.StdMeshers_MaxElementArea(), StdMeshers_MaxElementVolume.StdMeshers_MaxElementVolume(), StdMeshers_MaxLength.StdMeshers_MaxLength(), StdMeshers_NotConformAllowed.StdMeshers_NotConformAllowed(), StdMeshers_NumberOfLayers.StdMeshers_NumberOfLayers(), StdMeshers_NumberOfLayers2D.StdMeshers_NumberOfLayers2D(), StdMeshers_NumberOfSegments.StdMeshers_NumberOfSegments(), StdMeshers_ProjectionSource1D.StdMeshers_ProjectionSource1D(), StdMeshers_ProjectionSource2D.StdMeshers_ProjectionSource2D(), StdMeshers_ProjectionSource3D.StdMeshers_ProjectionSource3D(), StdMeshers_Propagation.StdMeshers_Propagation(), StdMeshers_QuadrangleParams.StdMeshers_QuadrangleParams(), StdMeshers_QuadranglePreference.StdMeshers_QuadranglePreference(), StdMeshers_QuadraticMesh.StdMeshers_QuadraticMesh(), StdMeshers_StartEndLength.StdMeshers_StartEndLength(), StdMeshers_TrianglePreference.StdMeshers_TrianglePreference(), and StdMeshers_ViscousLayers.StdMeshers_ViscousLayers().

Definition at line 58 of file SMESHDS_Hypothesis.hxx.

Referenced by SMESH_Hypothesis.SMESH_Hypothesis().

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