#endif
if( !myDriver.IsNull() ) {
- myBufferId = this->HashCode(IntegerLast());
+ myBufferId = ::HashCode ((Standard_Address)this, IntegerLast());
// Maximum depth of primitive lines
// contained in the buffer is required
// return (aType == STANDARD_TYPE(Standard_Persistent));
}
-//============================================================================
-Standard_Integer Standard_Persistent::HashCode(const Standard_Integer Lim)const
-{
- Handle(Standard_Persistent) me = this;
- return ::HashCode(me, Lim);
-}
-
-
void Standard_Persistent::ShallowDump(Standard_OStream& AStream) const
{
Handle(Standard_Persistent) me = this;
Standard_EXPORT virtual const Handle_Standard_Type& DynamicType() const;
Standard_EXPORT Standard_Boolean IsKind(const Handle_Standard_Type&)const;
Standard_EXPORT Standard_Boolean IsInstance(const Handle_Standard_Type&)const;
- Standard_EXPORT virtual Standard_Integer HashCode(const Standard_Integer Upper) const;
Standard_EXPORT virtual void ShallowDump(Standard_OStream& ) const;
};
return DynamicType()->SubType ( theTypeName );
}
-//============================================================================
-Standard_Integer Standard_Transient::HashCode(const Standard_Integer Lim) const
-{
- return ::HashCode(this, Lim);
-}
-
-
void Standard_Transient::ShallowDump(Standard_OStream& theStream) const
{
theStream << "class " << DynamicType()->Name() << " at " << this << endl;
//! Memory deallocator for transient classes
Standard_EXPORT virtual void Delete() const;
- //! Returns a hash code value for this object.
- //! The value is in the range 1..Upper.
- Standard_EXPORT virtual Standard_Integer HashCode(const Standard_Integer Upper) const;
-
Standard_EXPORT virtual void ShallowDump(Standard_OStream& ) const;
//! Returns a type information object about this object.
TopLoc_SListOfItemLocation items = myItems;
while (items.More()) {
depth += 3;
- unsigned int i = items.Value().myDatum->HashCode(upper);
+ unsigned int i = ::HashCode (items.Value().myDatum, upper);
unsigned int j = ( (i + items.Value().myPower) <<depth);
j = j>>(32-depth) | j<<depth;
h ^= j;
Standard_Boolean WNT_WDriver :: IsKnownImage (
const Handle( Standard_Transient )& anImage
- ) {
-
- return myWNTWindow -> myImages -> Index (
- anImage -> HashCode(
- IntegerLast ()
- )
+ )
+{
+ return myWNTWindow -> myImages -> Index ( ::HashCode (anImage, IntegerLast())
) ? Standard_True : Standard_False;
-
} // end WNT_WDriver :: IsKnownImage
Standard_Boolean WNT_WDriver :: SizeOfImageFile (
void WNT_WDriver :: ClearImage ( const Handle( Standard_Transient )& anImageId ) {
Standard_Integer i = myWNTWindow -> myImages -> Index (
- anImageId -> HashCode (
- IntegerLast ()
- )
+ ::HashCode (anImageId, IntegerLast())
);
if ( i ) myWNTWindow -> myImages -> Discard ( i );
) {
Standard_Integer i = myWNTWindow -> myImages -> Index (
- anImageId -> HashCode (
- IntegerLast ()
- )
+ ::HashCode (anImageId, IntegerLast())
);
if ( i ) A -> Image (
hpo = SelectPalette ( hdcMem, ( HPALETTE )gDev -> HPalette (), FALSE );
i = myWNTWindow -> myImages -> Index (
- h = anImageId -> HashCode ( IntegerLast () )
+ h = ::HashCode (anImageId, IntegerLast())
);
if ( i == 0 ) i = myWNTWindow -> myImages -> Open ( hdc, Width, Height, h );
hpo = SelectPalette ( hdcMem, ( HPALETTE )gDev -> HPalette (), FALSE );
i = myWNTWindow -> myImages -> Index (
- h = anImageId -> HashCode ( IntegerLast () )
+ h = ::HashCode (anImageId, IntegerLast())
);
if ( i == 0 ) i = myWNTWindow -> myImages -> Open ( hdc, Width, Height, h );
Standard_Boolean Xw_Driver::IsKnownImage(const Handle(Standard_Transient)& anImage) {
MyImage = Xw_get_image_handle( MyExtendedDrawable,
- (void*)(anImage->HashCode(IntegerLast())) ) ;
+ (void*)(::HashCode (anImage, IntegerLast())) ) ;
if( MyImage ) return (Standard_True) ;
else return Standard_False;
void Xw_Driver::ClearImage (const Handle(Standard_Transient)& anImage) {
MyImage = Xw_get_image_handle( MyExtendedDrawable,
- (void*) (anImage->HashCode(IntegerLast())) ) ;
+ (void*) (::HashCode (anImage, IntegerLast())) ) ;
if( MyImage ) {
status = Xw_close_image (MyImage);
void Xw_Driver::DrawImage (const Handle(Standard_Transient)& anImage, const Standard_ShortReal aX, const Standard_ShortReal aY) {
MyImage = Xw_get_image_handle( MyExtendedDrawable,
- (void*) (anImage->HashCode(IntegerLast())) ) ;
+ (void*) (::HashCode (anImage, IntegerLast())) ) ;
if( MyImage ) {
status = Xw_draw_image (MyExtendedDrawable, MyImage, aX, aY);
if ((aWidth > 0) && (aHeight > 0)) {
if( !MyImage ) {
MyImage = Xw_open_image (MyExtendedDrawable,
- (void*) (anImage->HashCode(IntegerLast())),
+ (void*) (::HashCode (anImage, IntegerLast())),
int (aWidth),int (aHeight));
}
if( !MyImage ) {
if ((aWidth > 0) && (aHeight > 0) && (anIndexOfLine == 0)) {
if( !MyImage ) {
MyImage = Xw_open_image (MyExtendedDrawable,
- (void*) (anImage->HashCode(IntegerLast())),
+ (void*) (::HashCode (anImage, IntegerLast())),
int (aWidth),int (aHeight));
}
}