FreeFem  3.5.x
femCommon.hpp
Go to the documentation of this file.
1 // -*- Mode : c++ -*-
2 //
3 // SUMMARY:
4 // USAGE:
5 //
6 // AUTHOR: Christophe Prud'homme (Jesunix) <prudhomm@mit.edu>
7 // ORG: MIT
8 // E-MAIL: prudhomm@mit.edu
9 //
10 // ORIG-DATE: 12-Jul-01 at 09:43:17
11 // LAST-MOD: 12-Jul-01 at 09:43:37 by
12 //
13 // RCS Infos:
14 // ==========
15 // Author: $Author: prudhomm $
16 // Id: $Id: femCommon.hpp 206 2006-07-30 16:52:02Z prudhomm $
17 // Revision: $Revision: 206 $
18 // Date: $Date: 2006-07-30 18:52:02 +0200 (Sun, 30 Jul 2006) $
19 // locker: $Locker: $
20 //
21 //
22 // DESCRIPTION:
23 // ============
44 // DESCRIP-END.
45 //
46 #ifndef __femCommon_H
47 #define __femCommon_H 1
48 
49 #define DECLARE_TYPE( mydecl, mytype ) \
50 typedef mydecl mytype; \
51 typedef mytype * mytype ## Ptr; \
52 typedef const mytype * mytype ## Cptr; \
53 typedef mytype & mytype ## Ref; \
54 typedef const mytype & mytype ## Cref;
55 
64 #define DECLARE_CLASS( tag ) \
65  class tag; \
66  typedef tag * tag ## Ptr; \
67  typedef const tag * tag ## Cptr; \
68  typedef tag & tag ## Ref; \
69  typedef const tag & tag ## Cref;
70 
71 
72 #endif /* __femCommon_H */

This is the FreeFEM reference manual
Provided by The KFEM project