// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _BOPTColStd_ShapeWithRank_HeaderFile #define _BOPTColStd_ShapeWithRank_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _TopoDS_Shape_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class TopoDS_Shape; //! The auxiliary class provides structure to store a shape
//! and its rank
//!
class BOPTColStd_ShapeWithRank { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Empty constructor
//!
Standard_EXPORT BOPTColStd_ShapeWithRank(); //! Modifier
//!
Standard_EXPORT void SetShape(const TopoDS_Shape& aS) ; //! Modifier
//!
Standard_EXPORT void SetRank(const Standard_Integer aR) ; //! Selector
//!
Standard_EXPORT const TopoDS_Shape& Shape() const; //! Selector
//!
Standard_EXPORT Standard_Integer Rank() const; //! Returns a HasCode value for the Key in the
//! range 0..Upper.
//!
Standard_EXPORT Standard_Integer HashCode(const Standard_Integer Upper) const; //! Returns True when the two keys are the same. Two
//! same keys must have the same hashcode, the
//! contrary is not necessary.
//!
Standard_EXPORT Standard_Boolean IsEqual(const BOPTColStd_ShapeWithRank& Other) const; protected: private: TopoDS_Shape myShape; Standard_Integer myRank; }; // other Inline functions and methods (like "C++: function call" methods) #endif