dict.h

来自「在纯DOS下运行的TurboC3_ucos2_ucgui bug改进版本」· C头文件 代码 · 共 59 行

H
59
字号
/*------------------------------------------------------------------------*/
/*                                                                        */
/*  DICT.H                                                                */
/*                                                                        */
/*  Copyright Borland International 1991                                  */
/*  All Rights Reserved                                                   */
/*                                                                        */
/*------------------------------------------------------------------------*/

#if !defined( __DICT_H )
#define __DICT_H

#if !defined( __CLSTYPES_H )
#include <ClsTypes.h>
#endif  // __CLSTYPES_H

#if !defined( __OBJECT_H )
#include <Object.h>
#endif  // __OBJECT_H

#if !defined( __SET_H )
#include <Set.h>
#endif  // __SET_H

#if !defined( __STDLIB_H )
#include <stdlib.h>
#endif

_CLASSDEF(Association)
_CLASSDEF(Dictionary)

class _CLASSTYPE Dictionary : public Set
{

public:

    Dictionary( unsigned sz = DEFAULT_HASH_TABLE_SIZE ) :
        Set(sz)
        {
        }

    virtual void add( Object _FAR & );
    Association _FAR & lookup( const Object _FAR & ) const;

    virtual classType isA() const
        {
        return dictionaryClass;
        }

    virtual char _FAR *nameOf() const
        {
        return "Dictionary";
        }

};

#endif  // __DICT_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?