TemplatedExport.hpp

00001 /*
00002 
00003 Copyright (C) University of Oxford, 2005-2009
00004 
00005 University of Oxford means the Chancellor, Masters and Scholars of the
00006 University of Oxford, having an administrative office at Wellington
00007 Square, Oxford OX1 2JD, UK.
00008 
00009 This file is part of Chaste.
00010 
00011 Chaste is free software: you can redistribute it and/or modify it
00012 under the terms of the GNU Lesser General Public License as published
00013 by the Free Software Foundation, either version 2.1 of the License, or
00014 (at your option) any later version.
00015 
00016 Chaste is distributed in the hope that it will be useful, but WITHOUT
00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00019 License for more details. The offer of Chaste under the terms of the
00020 License is subject to the License being interpreted in accordance with
00021 English Law and subject to any action against the University of Oxford
00022 being under the jurisdiction of the English Courts.
00023 
00024 You should have received a copy of the GNU Lesser General Public License
00025 along with Chaste. If not, see <http://www.gnu.org/licenses/>.
00026 
00027 */
00028 
00029 #ifndef TEMPLATEDEXPORT_HPP_
00030 #define TEMPLATEDEXPORT_HPP_
00031 
00032 #define COVERAGE_IGNORE
00033 
00039 #include <boost/serialization/export.hpp>
00040 
00041 template<class> struct pack;
00043 template<class T> struct pack<void (T)> {
00044     typedef T type; 
00045 };
00046 
00047 #define EXPORT_TEMPLATE_CLASS2(CLASS, E, S) \
00048     BOOST_CLASS_EXPORT( pack<void (CLASS< E,S >)>::type );
00049 
00050 #define EXPORT_TEMPLATE_CLASS1(CLASS, D) \
00051     BOOST_CLASS_EXPORT( pack<void (CLASS< D >)>::type );
00052 
00053 #define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS) \
00054     EXPORT_TEMPLATE_CLASS2(CLASS, 1, 1) \
00055     EXPORT_TEMPLATE_CLASS2(CLASS, 1, 2) \
00056     EXPORT_TEMPLATE_CLASS2(CLASS, 1, 3) \
00057     EXPORT_TEMPLATE_CLASS2(CLASS, 2, 2) \
00058     EXPORT_TEMPLATE_CLASS2(CLASS, 2, 3) \
00059     EXPORT_TEMPLATE_CLASS2(CLASS, 3, 3)
00060 
00061 #define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS) \
00062     EXPORT_TEMPLATE_CLASS1(CLASS, 1) \
00063     EXPORT_TEMPLATE_CLASS1(CLASS, 2) \
00064     EXPORT_TEMPLATE_CLASS1(CLASS, 3)
00065 
00066 #define EXPORT_ABSTRACT_TEMPLATE_CLASS2(CLASS, E, S) \
00067     BOOST_IS_ABSTRACT( pack<void (CLASS< E,S >)>::type );
00068 
00069 #define EXPORT_ABSTRACT_TEMPLATE_CLASS1(CLASS, D) \
00070     BOOST_IS_ABSTRACT( pack<void (CLASS< D >)>::type );
00071 
00072 #define EXPORT_ABSTRACT_TEMPLATE_CLASS_SAME_DIMS(CLASS) \
00073     EXPORT_ABSTRACT_TEMPLATE_CLASS1(CLASS, 1) \
00074     EXPORT_ABSTRACT_TEMPLATE_CLASS1(CLASS, 2) \
00075     EXPORT_ABSTRACT_TEMPLATE_CLASS1(CLASS, 3)
00076 
00077 #define EXPORT_ABSTRACT_TEMPLATE_CLASS_ALL_DIMS(CLASS) \
00078     EXPORT_ABSTRACT_TEMPLATE_CLASS2(CLASS, 1, 1) \
00079     EXPORT_ABSTRACT_TEMPLATE_CLASS2(CLASS, 1, 2) \
00080     EXPORT_ABSTRACT_TEMPLATE_CLASS2(CLASS, 1, 3) \
00081     EXPORT_ABSTRACT_TEMPLATE_CLASS2(CLASS, 2, 2) \
00082     EXPORT_ABSTRACT_TEMPLATE_CLASS2(CLASS, 2, 3) \
00083     EXPORT_ABSTRACT_TEMPLATE_CLASS2(CLASS, 3, 3)
00084 
00085 
00086 #undef COVERAGE_IGNORE
00087 #endif /*TEMPLATEDEXPORT_HPP_*/

Generated on Tue Aug 4 16:10:21 2009 for Chaste by  doxygen 1.5.5