Vaucanson  1.4.1
selectors.hh
Go to the documentation of this file.
1 // selectors.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 #ifndef VCSN_MISC_SELECTORS_HH
18 # define VCSN_MISC_SELECTORS_HH
19 
28 # define SELECT(T) (* (const T*)0)
29 
30 # define SELECT2(T1, T2) (* (const T1 , T2 *)0)
31 
32 # define SELECT3(T1, T2, T3) (* (const T1 , T2, T3 *)0)
33 
34 # define SELECT4(T1, T2, T3, T4) (* (const T1 , T2, T3, T4 *)0)
35 
37 # define SELECTOR(T) const T &
38 
39 # define SELECTOR2(T1, T2) const T1 , T2 &
40 
41 # define SELECTOR3(T1, T2, T3) const T1 , T2, T3 &
42 
43 # define SELECTOR4(T1, T2, T3, T4) const T1 , T2, T3, T4 &
44 
47 #endif // ! VCSN_MISC_SELECTORS_HH