CLucene - a full-featured, c++ search engine
API Documentation
00001 /*------------------------------------------------------------------------------ 00002 * Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team 00003 * 00004 * Distributable under the terms of either the Apache License (Version 2.0) or 00005 * the GNU Lesser General Public License, as specified in the COPYING file. 00006 ------------------------------------------------------------------------------*/ 00007 #if !defined(_lucene_util_MapSets_) && !defined(_lucene_util_VoidMap_) 00008 #define _lucene_util_MapSets_ 00009 00010 #include "Equators.h" 00011 00012 CL_NS_DEF(util) 00013 00014 00015 00016 //LISTS 00018 template<typename _kt,typename _base,typename _valueDeletor> 00019 class __CLList; 00020 00021 template<typename _kt, typename _valueDeletor=CL_NS(util)::Deletor::Dummy> 00022 class CLVector; 00023 00024 #define CLArrayList CLVector 00025 #define CLHashSet CLHashList 00026 00027 template<typename _kt, 00028 typename _Comparator=CL_NS(util)::Compare::TChar, 00029 typename _valueDeletor=CL_NS(util)::Deletor::Dummy> 00030 class CLHashList; 00031 00032 template<typename _kt, typename _valueDeletor=CL_NS(util)::Deletor::Dummy> 00033 class CLLinkedList; 00034 template<typename _kt, 00035 typename _Comparator=CL_NS(util)::Compare::TChar, 00036 typename _valueDeletor=CL_NS(util)::Deletor::Dummy> 00037 class CLSetList; 00038 00039 00040 00042 //MAPS 00044 template<typename _kt, typename _vt, 00045 typename _base, 00046 typename _KeyDeletor=CL_NS(util)::Deletor::Dummy, 00047 typename _ValueDeletor=CL_NS(util)::Deletor::Dummy> 00048 class __CLMap; 00049 00050 // makes no guarantees as to the order of the map 00051 // cannot contain duplicate keys; each key can map to at most one value 00052 #define CLHashtable CLHashMap 00053 00054 //a CLSet with CLHashMap traits 00055 template<typename _kt, typename _vt, 00056 typename _Compare, 00057 typename _EqualDummy, 00058 typename _KeyDeletor=CL_NS(util)::Deletor::Dummy, 00059 typename _ValueDeletor=CL_NS(util)::Deletor::Dummy> 00060 class CLHashMap; 00061 00062 00063 //A collection that contains no duplicates 00064 //does not guarantee that the order will remain constant over time 00065 template<typename _kt, typename _vt, 00066 typename _Compare, 00067 typename _KeyDeletor=CL_NS(util)::Deletor::Dummy, 00068 typename _ValueDeletor=CL_NS(util)::Deletor::Dummy> 00069 class CLSet; 00070 00071 00072 //A collection that can contains duplicates 00073 template<typename _kt, typename _vt, 00074 typename _Compare, 00075 typename _KeyDeletor=CL_NS(util)::Deletor::Dummy, 00076 typename _ValueDeletor=CL_NS(util)::Deletor::Dummy> 00077 class CLMultiMap; 00078 00079 CL_NS_END 00080 #endif