src/server/Index.cxx

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007 by www.databasecache.com                           *
00003  *   Contact: praba_tuty@databasecache.com                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015   ***************************************************************************/
00016 #include<Index.h>
00017 #include<Allocator.h>
00018 #include<Database.h>
00019 #include<Debug.h>
00020 
00021 HashIndex* Index::hIdx = NULL;
00022 long Index::usageCount = 0;
00023 
00024 Index* Index::getIndex(IndexType type)
00025 {
00026     if (type == hashIndex) 
00027     {
00028         if (NULL == hIdx) hIdx = new HashIndex();
00029         return hIdx;
00030     }
00031     return NULL;
00032 }
00033 
00034 

Generated on Mon Jun 9 22:37:15 2008 for csql by  doxygen 1.4.7