/usr/include/CLAM/CBLMacros.hxx is in libclam-dev 1.4.0-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | /*
* Copyright (c) 2001-2002 MUSIC TECHNOLOGY GROUP (MTG)
* UNIVERSITAT POMPEU FABRA
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __CBLMACROS__
#define __CBLMACROS__
#include "Functor0.hxx"
#include "Functor1.hxx"
#include "Functor2.hxx"
#include "Functor3.hxx"
#include "Functor4.hxx"
#include "Functor0R.hxx"
#include "Functor1R.hxx"
#include "Functor2R.hxx"
#include "Functor3R.hxx"
#include "Functor4R.hxx"
// Macros for wrapping Functor0
#define makeMemberFunctor0( ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor0*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor0( classname, methodname ) \
CBL::makeFunctor( (CBL::Functor0*)0, &classname::methodname ) \
#define makeCFunctionFunctor0( methodname ) \
CBL::makeFunctor( (CBL::Functor0*)0, &methodname ) \
// Macros for wrapping Functor0R
#define makeMemberFunctor0R( returntype, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor0R<returntype>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor0R( returntype, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor0R<returntype>*)0, &classname::methodname ) \
#define makeCFunctionFunctor0R( returntype, methodname ) \
CBL::makeFunctor( (CBL::Functor0R< returntype >*) 0, &methodname ) \
// Macros for wrapping Functor1
#define makeMemberFunctor1( parmtype, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor1< parmtype>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor1( parmtype, classname, methodname) \
CBL::makeFunctor( (CBL::Functor1< parmtype>*)0, &classname::methodname ) \
#define makeCFunctionFunctor1( parmtype, methodname ) \
CBL::makeFunctor( (CBL::Functor1< parmtype>*)0, &methodname ) \
// Macros for wrapping Functor1R
#define makeMemberFunctor1R( returntype, parmtype, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor1R< returntype, parmtype>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor1R( returntype, parmtype, classname, methodname) \
CBL::makeFunctor( (CBL::Functor1R< returntype, parmtype>*)0, &classname::methodname ) \
#define makeCFunctionFunctor1R( returntype, parmtype, methodname ) \
CBL::makeFunctor( (CBL::Functor1R< returntype, parmtype>*)0, &methodname ) \
// Macros for wrapping Functor2
#define makeMemberFunctor2( parmtype1, parmtype2, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor2< parmtype1, parmtype2>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor2( parmtype1, parmtype2, classname, methodname) \
CBL::makeFunctor( (CBL::Functor2< parmtype1, parmtype2>*)0, &classname::methodname ) \
#define makeCFunctionFunctor2( parmtype1, parmtype2, methodname ) \
CBL::makeFunctor( (CBL::Functor2< parmtype1, parmtype2>*)0, &methodname ) \
// Macros for wrapping Functor2R
#define makeMemberFunctor2R( returntype, parmtype1, parmtype2, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor2R< returntype, parmtype1, parmtype2>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor2R( returntype, parmtype1, parmtype2, classname, methodname) \
CBL::makeFunctor( (CBL::Functor2R< returntype, parmtype1, parmtype2>*)0, &classname::methodname ) \
#define makeCFunctionFunctor2R( returntype, parmtype1, parmtype2, methodname ) \
CBL::makeFunctor( (CBL::Functor2R< returntype, parmtype1, parmtype2>*)0, &methodname ) \
// Macros for wrapping Functor3
#define makeMemberFunctor3( parmtype1, parmtype2, parmtype3, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor3< parmtype1, parmtype2, parmtype3>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor3( parmtype1, parmtype2, parmtype3, classname, methodname) \
CBL::makeFunctor( (CBL::Functor3< parmtype1, parmtype2, parmtype3>*)0, &classname::methodname ) \
#define makeCFunctionFunctor3( parmtype1, parmtype2, parmtype3, methodname ) \
CBL::makeFunctor( (CBL::Functor3< parmtype1, parmtype2, parmtype3>*)0, &methodname ) \
// Macros for wrapping Functor3R
#define makeMemberFunctor3R( returntype, parmtype1, parmtype2, parmtype3, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor3R< returntype, parmtype1, parmtype2, parmtype3>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor3R( returntype, parmtype1, parmtype2, parmtype3, classname, methodname) \
CBL::makeFunctor( (CBL::Functor3R< returntype, parmtype1, parmtype2, parmtype3>*)0, &classname::methodname ) \
#define makeCFunctionFunctor3R( returntype, parmtype1, parmtype2, parmtype3, methodname ) \
CBL::makeFunctor( (CBL::Functor3R< returntype, parmtype1, parmtype2, parmtype3>*)0, &methodname ) \
// Macros for wrapping Functor4
#define makeMemberFunctor4( parmtype1, parmtype2, parmtype3, parmtype4, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor4< parmtype1, parmtype2, parmtype3, parmtype4>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor4( parmtype1, parmtype2, parmtype3, parmtype4, classname, methodname) \
CBL::makeFunctor( (CBL::Functor4< parmtype1, parmtype2, parmtype3, parmtype4>*)0, &classname::methodname ) \
#define makeCFunctionFunctor4( parmtype1, parmtype2, parmtype3, parmtype4, methodname ) \
CBL::makeFunctor( (CBL::Functor4< parmtype1, parmtype2, parmtype3, parmtype4>*)0, &methodname ) \
// Macros for wrapping Functor4R
#define makeMemberFunctor4R( returntype, parmtype1, parmtype2, parmtype3, parmtype4, ref, classname, methodname ) \
CBL::makeFunctor( (CBL::Functor4R< returntype, parmtype1, parmtype2, parmtype3, parmtype4>*)0, ref, &classname::methodname ) \
#define makeStaticMemberFunctor4R( returntype, parmtype1, parmtype2, parmtype3, parmtype4, classname, methodname) \
CBL::makeFunctor( (CBL::Functor4R< returntype, parmtype1, parmtype2, parmtype3, parmtype4>*)0, &classname::methodname ) \
#define makeCFunctionFunctor4R( returntype, parmtype1, parmtype2, parmtype3, parmtype4, methodname ) \
CBL::makeFunctor( (CBL::Functor4R< returntype, parmtype1, parmtype2, parmtype3, parmtype4>*)0, &methodname ) \
#endif // CBLMacros.hxx
|