00001 // Index class implementation -*- C++ -*- 00002 00003 // Copyright (C) 2003 Hermann Schichl 00004 // 00005 // This file is part of the Vienna Database Library. This library is free 00006 // software; you can redistribute it and/or modify it under the 00007 // terms of the Library GNU General Public License as published by the 00008 // Free Software Foundation; either version 2, or (at your option) 00009 // any later version. 00010 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // Library GNU General Public License for more details. 00015 00016 // As a special exception, you may use this file as part of a free software 00017 // library without restriction. Specifically, if other files instantiate 00018 // templates or use macros or inline functions from this file, or you compile 00019 // this file and link it with other files to produce an executable, this 00020 // file does not by itself cause the resulting executable to be covered by 00021 // the Library GNU General Public License. This exception does not however 00022 // invalidate any other reasons why the executable file might be covered by 00023 // the Library GNU General Public License. 00024 00030 #ifndef __VDBL_INDEX_H 00031 #define __VDBL_INDEX_H 00032 00033 #include <map> 00034 #include <vdbl_config.h> 00035 #include <vdbl_types.h> 00036 00037 __VDBL_BEGIN_NAMESPACE 00038 00039 #if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32) 00040 #pragma set woff 1209 00041 #endif 00042 00043 class __VDBL_index 00044 { 00045 }; 00046 00047 template <class _R> 00048 class _VDBL_index : public __VDBL_index 00049 { 00050 }; 00051 00052 template <class _R> 00053 class index : public _VDBL_index<_R> 00054 { 00055 typedef _R type; 00056 }; 00057 00058 #if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32) 00059 #pragma reset woff 1209 00060 #endif 00061 00062 __VDBL_END_NAMESPACE 00063 00064 #endif /* __VDBL_INDEX_H */ 00065 00066 // Local Variables: 00067 // mode:C++ 00068 // End: