FreeFem  3.5.x
Macros
femCommon.hpp File Reference

Go to the source code of this file.

Macros

#define DECLARE_TYPE(mydecl, mytype)
 
#define DECLARE_CLASS(tag)
 Declare class , class pointer , const pointer, class reference and const class reference types for classes. More...
 

Detailed Description

describe femCommon.hpp here

Distributed under the GPL(GNU Public License):
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., 675 Mass Ave, Cambridge, MA 02139, USA.

Macro Definition Documentation

◆ DECLARE_CLASS

#define DECLARE_CLASS (   tag)
Value:
class tag; \
typedef tag * tag ## Ptr; \
typedef const tag * tag ## Cptr; \
typedef tag & tag ## Ref; \
typedef const tag & tag ## Cref;

Declare class , class pointer , const pointer, class reference and const class reference types for classes.

For example DECLARE_CLASS( Exception );

Parameters
tagThe class being declared

◆ DECLARE_TYPE

#define DECLARE_TYPE (   mydecl,
  mytype 
)
Value:
typedef mydecl mytype; \
typedef mytype * mytype ## Ptr; \
typedef const mytype * mytype ## Cptr; \
typedef mytype & mytype ## Ref; \
typedef const mytype & mytype ## Cref;

This is the FreeFEM reference manual
Provided by The KFEM project