0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported

+  inline SMDS_MeshInfo& operator=(const SMDS_MeshInfo& other);
This commit is contained in:
eap 2011-08-10 09:54:13 +00:00
parent c9acf11dee
commit 406dc55fef

View File

@ -35,6 +35,7 @@ class SMDS_EXPORT SMDS_MeshInfo
public:
inline SMDS_MeshInfo();
inline SMDS_MeshInfo& operator=(const SMDS_MeshInfo& other);
inline void Clear();
int NbNodes() const { return myNbNodes; }
@ -161,6 +162,14 @@ inline SMDS_MeshInfo::SMDS_MeshInfo():
myNb[ index( SMDSAbs_Volume, 20)] = & myNbQuadHexas;
}
inline SMDS_MeshInfo& // operator=
SMDS_MeshInfo::operator=(const SMDS_MeshInfo& other)
{ for ( int i=0; i<myNb.size(); ++i ) if ( myNb[i] ) (*myNb[i])=(*other.myNb[i]);
myNbPolygons = other.myNbPolygons;
myNbPolyhedrons = other.myNbPolyhedrons;
return *this;
}
inline void // Clear
SMDS_MeshInfo::Clear()
{ for ( int i=0; i<myNb.size(); ++i ) if ( myNb[i] ) (*myNb[i])=0;