Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# XFuStringKey.h

Go to the documentation of this file.

    00001 /*! \file
    00002  * X-Forge Util <br>
    00003  * Copyright 2000-2003 Fathammer Ltd
    00004  *
    00005  * \brief XFuStringKey.h is the header file for the XFuStringKey class,
    00006  * which is a null terminated string key for use with hashtables.
    00007  *
    00008  * $Id: XFuStringKey.h,v 1.11 2003/09/29 13:49:02 jari Exp $
    00009  * $Date: 2003/09/29 13:49:02 $
    00010  * $Revision: 1.11 $
    00011  */
    00012
    00013 #ifndef XFUSTRINGKEY_H_INCLUDED
    00014 #define XFUSTRINGKEY_H_INCLUDED
    00015
    00016 #include <xfcore/XFcHashtable.h>
    00017
    00018
    00019 #define XFUSTRINGKEY_DATASIZE   64
    00020
    00021
    00022 class XFuStringKey
    00023 {
    00024
    00025 public:
    00026
    00027     //! Default constructor.
    00028     XFuStringKey();
    00029
    00030     //! Constructor.
    00031     XFuStringKey(const CHAR *aKey);
    00032
    00033     //! Copy constructor.
    00034     XFuStringKey(const XFuStringKey &aKey);
    00035
    00036     //! Overloaded assignment operator.
    00037     XFuStringKey & operator=(const XFuStringKey &aKey);
    00038
    00039     //! Destructor.
    00040     virtual ~XFuStringKey();
    00041
    00042     //! Initializer.
    00043     void init(const CHAR *aKey);
    00044
    00045     //! Key value.
    00046     CHAR *mKey;
    00047
    00048     //! Hash code.
    00049     UINT32 mHashCode;
    00050
    00051 protected:
    00052
    00053     CHAR mData[XFUSTRINGKEY_DATASIZE];
    00054     UINT8 mUsingData;
    00055
    00056 };
    00057
    00058
    00059 /*
    00060 //! Hashcode function for XFuStringKey.
    00061 UINT32 XFcHashtableHash<XFuStringKey>::operator() (const XFuStringKey key) const;
    00062
    00063 //! Equality check for XFuStringKey.
    00064 INT XFcHashtableEQ<XFuStringKey>::operator() (const XFuStringKey key1, const XFuStringKey key2) const;
    00065 */
    00066
    00067
    00068 #endif // !XFUSTRINGKEY_H_INCLUDED
    00069

|  | X-Forge Documentation Confidential Copyright © 2002-2003 Fathammer |  | Documentation generated with doxygen by Dimitri van Heesch