/home/doxygen/libascend/compiler/createinst.h

Go to the documentation of this file.
00001 /*  ASCEND modelling environment
00002     Copyright (C) 2006 Carnegie Mellon University
00003     Copyright (C) 1996 Ben Allan
00004     Copyright (C) 1990, 1993, 1994 Thomas Guthrie Epperly
00005 
00006     This program is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU General Public License
00008     as published by the Free Software Foundation; either version 2
00009     of the License, or (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019 *//*
00023     Ascend Instance Allocation Functions
00024     based on instance.c by Tom Epperly, 8/16/89
00025     this incantation by Ben Allan
00026     Last in CVS: $Revision: 1.5 $ $Date: 1998/02/05 16:35:48 $ $Author: ballan $
00027 */
00028 
00029 #ifndef ASC_CREATEINST_H
00030 #define ASC_CREATEINST_H
00031 
00032 #include "instance_enum.h"
00033 #include "expr_types.h"
00034 
00039 extern void ZeroNewChildrenEntries(struct Instance **ary, unsigned long int num);
00044 extern struct Instance *CreateSimulationInstance(struct TypeDescription *type,
00045                                                  symchar *name);
00058 extern struct Instance *CreateModelInstance(struct TypeDescription *type);
00068 extern struct Instance *CreateDummyInstance(struct TypeDescription *type);
00077 extern struct Instance *CreateRealInstance(struct TypeDescription *type);
00089 extern struct Instance *CreateIntegerInstance(struct TypeDescription *type);
00101 extern struct Instance *CreateBooleanInstance(struct TypeDescription *type);
00112 extern struct Instance *CreateSetInstance(struct TypeDescription *type, int intset);
00122 extern struct Instance *CreateSymbolInstance(struct TypeDescription *type);
00132 extern struct Instance *CreateArrayInstance(struct TypeDescription *type,
00133                                             unsigned long aIndex);
00142 extern struct Instance *CreateRelationInstance(struct TypeDescription *type,
00143                                                enum Expr_enum reltype);
00151 extern struct Instance *CreateLogRelInstance(struct TypeDescription *type);
00158 extern struct Instance *CreateWhenInstance(struct TypeDescription *type);
00164 /* @} */
00165 
00166 #endif  /* ASC_CREATEINST_H */
00167 

Generated on Thu Jul 17 04:00:10 2008 for libascend by  doxygen 1.5.1