Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

vdbl_method.h

Go to the documentation of this file.
00001 // Method-Column 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_METHOD_H
00031 #define __VDBL_METHOD_H
00032 
00033 #include <vdbl_config.h>
00034 #include <vdbl_types.h>
00035 #include <vdbl_context.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_row;
00044 
00046 
00054 template <class _R>
00055 class _VDBL_method
00056 {
00057 private:
00059   typedef _R return_type;
00060 
00061 public:
00065   _VDBL_method() {}
00069   _VDBL_method(const _VDBL_method& __m) {}
00070 
00074   virtual ~_VDBL_method() {}
00075   
00079   virtual const return_type& operator() () VDBL_PURE_VIRTUAL
00083   virtual const return_type& def() VDBL_PURE_VIRTUAL
00087   virtual void setcontext(const context* _c, const _VDBL_row* _r) {}
00088 };
00089 
00091 
00099 template <class _R>
00100 class method : public _VDBL_method<_R>
00101 {
00102 public:
00107   typedef _R return_type;
00108 };
00109 
00110 #if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
00111 #pragma reset woff 1209
00112 #endif
00113 
00114 __VDBL_END_NAMESPACE
00115 
00116 #endif /* __VDBL_METHOD_H */
00117 
00118 // Local Variables:
00119 // mode:C++
00120 // End:

Generated on Tue Nov 4 01:29:11 2003 for Vienna Database Library by doxygen1.2.18