-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
SMESH_PredicatePtr GetPredicate() const { return myPredicate; }
- virtual int Extent() const;
+ std::vector< int > GetMeshInfo() const;
+
+ template< typename IDTYPE >
+ int GetElementIds( IDTYPE* ids ) const
+ {
+ return getElementIds( (void*)ids, sizeof(IDTYPE));
+ }
+
+
+ virtual int Extent() const;
+
+ virtual bool IsEmpty();
virtual bool Contains (const int theID);
virtual SMDS_ElemIteratorPtr GetElements() const;
- virtual int GetID (const int theIndex);
-
- virtual int GetTic() const;
+ virtual int GetTic() const;
- bool IsUpToDate() const;
+ bool IsUpToDate() const;
private:
void update() const;
void setChanged(bool changed=true);
+ const SMDS_MeshElement* setNbElemToSkip( SMDS_ElemIteratorPtr& elIt );
+ int getElementIds( void* ids, size_t idSize ) const;
SMESH_PredicatePtr myPredicate;
- std::vector< const SMDS_MeshElement*> myElements;
- unsigned long myMeshModifTime; // when myElements was filled
+ std::vector< int > myMeshInfo;
+ size_t myMeshModifTime; // when myMeshInfo was updated
int myPredicateTic;
+ size_t myNbElemToSkip;
};
#endif