GizmoBase

gzInstanceCompareInterface Class Reference

Provides a base interface for instance comparing using hash values. More...

#include <gzHashUtils.h>

List of all members.

Public Member Functions

 gzInstanceCompareInterface ()
 Default constructor, Creates unique instance hash value.
 gzInstanceCompareInterface (const gzVoid *address)
 Generic constructor, Creates unique instance hash value from your supplied address.
gzULong hash () const
 returns the hash value of your instance
const gzVoidgetInstance () const
 returns the instance address
gzBool operator== (const gzInstanceCompareInterface &right)
 equality operator


Detailed Description

Provides a base interface for instance comparing using hash values.

Derive your class from this inteface to get the hash() function. Your class can then be used by templates like gzDict etc. that requires the hash() comparing method.

Definition at line 55 of file gzHashUtils.h.


Constructor & Destructor Documentation

gzInstanceCompareInterface::gzInstanceCompareInterface  )  [inline]
 

Default constructor, Creates unique instance hash value.

Definition at line 60 of file gzHashUtils.h.

gzInstanceCompareInterface::gzInstanceCompareInterface const gzVoid address  )  [inline]
 

Generic constructor, Creates unique instance hash value from your supplied address.

Definition at line 63 of file gzHashUtils.h.


Member Function Documentation

const gzVoid* gzInstanceCompareInterface::getInstance  )  const [inline]
 

returns the instance address

Definition at line 69 of file gzHashUtils.h.

gzULong gzInstanceCompareInterface::hash  )  const [inline]
 

returns the hash value of your instance

Definition at line 66 of file gzHashUtils.h.

References gzPtr2Val().

gzBool gzInstanceCompareInterface::operator== const gzInstanceCompareInterface right  )  [inline]
 

equality operator

Definition at line 72 of file gzHashUtils.h.

References m_address.


The documentation for this class was generated from the following file:
Documentation for GizmoBase generated at Wed Feb 20 11:57:57 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond