imgtools/imgcheck/inc/hash.h
author y4jin
Thu, 18 Nov 2010 13:43:06 +0800
changeset 704 0f8b90f18a21
parent 590 360bd6b35136
permissions -rw-r--r--
Fix the illegal word scanned by sfchecksource tools

/*
* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
* class Hash Table declaration
* @internalComponent
* @released
*
*/


#ifndef HASH_H
#define HASH_H
 

#include<iostream>
#include<list>
#include<map>
#include<string>
using namespace std;


typedef multimap<unsigned int,string > Table;
 
/** 
class Hash Table

@internalComponent
@released
*/
class HashTable 
{
public:
	HashTable(int aSize);
	~HashTable(void);
	int Hash(const string& aString);
	bool IsAvailable(const string& aString);
	void Insert(const string& aString);
	void InsertStringList(const StringList& aList);
	void Delete(const string& aString);

private:
	int iSize;       /* the size of the table */
	Table iTable;
};
#endif //HASH_H