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

-  virtual int Extent();
+  virtual int Extent() const;
This commit is contained in:
eap 2011-08-10 10:04:00 +00:00
parent 4f20185178
commit 2ddb295e4a
6 changed files with 8 additions and 7 deletions

View File

@ -49,7 +49,7 @@ SMESHDS_Group::SMESHDS_Group (const int theID,
//purpose :
//=======================================================================
int SMESHDS_Group::Extent()
int SMESHDS_Group::Extent() const
{
return myGroup.Extent();
}

View File

@ -46,7 +46,7 @@ class SMESHDS_EXPORT SMESHDS_Group : public SMESHDS_GroupBase
virtual void SetType(SMDSAbs_ElementType theType);
virtual int Extent();
virtual int Extent() const;
virtual bool IsEmpty();

View File

@ -105,7 +105,7 @@ void SMESHDS_GroupBase::resetIterator()
//purpose :
//=======================================================================
int SMESHDS_GroupBase::Extent()
int SMESHDS_GroupBase::Extent() const
{
SMDS_ElemIteratorPtr it = GetElements();
int nb = 0;

View File

@ -58,7 +58,7 @@ class SMESHDS_EXPORT SMESHDS_GroupBase
const char* GetStoreName () const { return myStoreName.c_str(); }
virtual int Extent();
virtual int Extent() const;
virtual bool IsEmpty();
@ -97,11 +97,12 @@ class SMESHDS_EXPORT SMESHDS_GroupBase
const SMESHDS_Mesh* myMesh;
SMDSAbs_ElementType myType;
std::string myStoreName;
Quantity_Color myColor;
// for GetID()
int myCurIndex;
int myCurID;
SMDS_ElemIteratorPtr myIterator;
Quantity_Color myColor;
};
#endif

View File

@ -66,7 +66,7 @@ void SMESHDS_GroupOnFilter::SetPredicate( const SMESH_PredicatePtr& thePredicate
*/
//================================================================================
int SMESHDS_GroupOnFilter::Extent()
int SMESHDS_GroupOnFilter::Extent() const
{
update();
return myElements.size();

View File

@ -46,7 +46,7 @@ class SMESHDS_EXPORT SMESHDS_GroupOnFilter: public SMESHDS_GroupBase
SMESH_PredicatePtr GetPredicate() const { return myPredicate; }
virtual int Extent();
virtual int Extent() const;
virtual bool Contains (const int theID);