Main Page | Alphabetical List | Class List | File List | Class Members | File Members

femCommon.hpp File Reference

Go to the source code of this file.

Defines

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


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.

Define Documentation

#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:
tag The class being declared

#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