1 /* Copyright (C) <+years+> the members of the LinBox group
2  * Written by <+someone+> < <+her mail+> >
3  *
4  * This file is part of the LinBox library.
5  *
6  * ========LICENCE========
7  * LinBox is free software: you can redistribute it and/or modify
8  * it under the terms of the  GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * LinBox is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20  * ========LICENCE========
21  *
22  * other mentions
23  */
24 
25 #ifndef __LINBOX_<+directory_file_name+>_H
26 #define __LINBOX_<+directory_file_name+>_H
27 
28 /** @file <+directory/file-name.h+>
29  * @brief desc
30  * long doxy desc
31  * @bib bibliography
32  */
33 
34 #include "<++>"
35 
36 #if 0 // better than commenting out code with big /*   */
37 // (it shows this code is not really mature yet...)
38 
39 #define LB_VAR  10  /* local var */
40 #define LB_DEF      /* local define */
41 #define LB_MACRO () /* local macro */
42 
43 #ifdef _LINBOX_DEF   // linbox global define
44 #ifdef _LINBOX_MACRO // linbox global macro
45 #if _LINBOX_VAR // linbox global variable
46 #endif
47 #endif
48 #endif
49 
50 #endif
51 
52 namespace LinBox
53 {
54 	/**  @brief this function is about...
55 	 * this important function has comments  !!!
56 	 */
57 	template<++>
my_func(T & toto)58 	void my_func(T & toto)
59 	{
60 		toto() ;
61 		if (a) {
62 			b();
63 		}
64 		else {
65 			c() ;
66 		}
67 	}
68 
69 	template<class A,
70 	class B>
71 	void foo() ;
72 
73 	switch(a) {
74 	case toto:
75 		a() ;
76 		break;
77 	case titi:
78 		{
79 			b() ;
80 			break;
81 		}
82 	default :
83 		{
84 			b() ;
85 		}
86 	}
87 
88 	class A {
89 	private :
90 		int _p ;
91 		int _q ;
92 	public :
A()93 		A() :
94 			_p(0), _q(0)
95 		{} ;
96 
A(int q)97 		A(int q) : _p(1), _q(q)
98 		{} ;
99 
A(int p,int q)100 		A(int p, int q)
101 		: _p(p), _q(q)
102 		{} ;
103 
104 
~A()105 		~A() {} ;
106 	};
107 #if 0
108 	int old_code()  // but maybe usefull later
109 	{
110 		prinf("comment out code !");
111 	}
112 #endif
113 
114 } //LinBox
115 
116 #include "<+file-name.inl+>" // implementation here
117 
118 #undef LB_VAR    // environmentalists love us
119 #undef LB_DEF    // really !
120 #undef LB_MACRO
121 
122 #endif //__LINBOX_<+directory_file_name+>_H
123 
124 // Local Variables:
125 // mode: C++
126 // tab-width: 4
127 // indent-tabs-mode: nil
128 // c-basic-offset: 4
129 // End:
130 // vim:sts=4:sw=4:ts=4:et:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
131