FreeFem 3.5.x
femCommon.hpp
Go to the documentation of this file.
00001 // -*- Mode : c++ -*-
00002 //
00003 //   SUMMARY: 
00004 //     USAGE:
00005 //
00006 //    AUTHOR: Christophe Prud'homme (Jesunix) <prudhomm@mit.edu>
00007 //       ORG: MIT
00008 //    E-MAIL: prudhomm@mit.edu
00009 //
00010 // ORIG-DATE: 12-Jul-01 at 09:43:17
00011 //  LAST-MOD: 12-Jul-01 at 09:43:37 by 
00012 //
00013 // RCS Infos:
00014 // ==========
00015 //    Author: $Author: prudhomm $
00016 //        Id: $Id: femCommon.hpp 206 2006-07-30 16:52:02Z prudhomm $
00017 //  Revision: $Revision: 206 $
00018 //      Date: $Date: 2006-07-30 18:52:02 +0200 (Sun, 30 Jul 2006) $
00019 //    locker: $Locker:  $
00020 //
00021 //
00022 // DESCRIPTION:
00023 // ============
00044 // DESCRIP-END.
00045 //
00046 #ifndef __femCommon_H
00047 #define __femCommon_H 1
00048 
00049 #define DECLARE_TYPE( mydecl, mytype )  \
00050 typedef mydecl         mytype;         \
00051 typedef mytype *       mytype ## Ptr;  \
00052 typedef const mytype * mytype ## Cptr; \
00053 typedef mytype &       mytype ## Ref;  \
00054 typedef const mytype & mytype ## Cref;
00055 
00064 #define DECLARE_CLASS( tag )            \
00065    class   tag;                        \
00066    typedef tag *       tag ## Ptr;     \
00067    typedef const tag * tag ## Cptr;    \
00068    typedef tag &       tag ## Ref;     \
00069    typedef const tag & tag ## Cref;
00070 
00071 
00072 #endif /* __femCommon_H */

This is the FreeFEM reference manual
Provided by The KFEM project