/[ascend]/trunk/base/generic/compiler/createinst.h
ViewVC logotype

Diff of /trunk/base/generic/compiler/createinst.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 302 by jds, Tue Aug 2 11:20:09 2005 UTC revision 303 by johnpye, Tue Feb 21 02:38:13 2006 UTC
# Line 38  Line 38 
38   *  </pre>   *  </pre>
39   */   */
40    
41  #ifndef __CREATEINST_H_SEEN__  #ifndef ASC_CREATEINST_H
42  #define __CREATEINST_H_SEEN__  #define ASC_CREATEINST_H
43    
44  extern void ZeroNewChildrenEntries(struct Instance **ary, unsigned long int num);  extern void ZeroNewChildrenEntries(struct Instance **ary, unsigned long int num);
45  /**<  /**<
  *  <!--  ZeroNewChildrenEntries(ary,num)                              -->  
46   *  Sets num entries of ary to NULL.   *  Sets num entries of ary to NULL.
47   */   */
48    
49  extern struct Instance *CreateSimulationInstance(struct TypeDescription *type,  extern struct Instance *CreateSimulationInstance(struct TypeDescription *type,
50                                                   symchar *name);                                                   symchar *name);
51  /**<  /**<
  *  <!--  struct Instance *CreateSimulationInstance(type,name)         -->  
  *  <!--  struct TypeDescription *type;                                -->  
  *  <!--  symchar *name;                                               -->  
52   *  Create an instance of the type described by "type".  The memory of "type"   *  Create an instance of the type described by "type".  The memory of "type"
53   *  is used by the instance structure, so do not dispose or modify the memory.   *  is used by the instance structure, so do not dispose or modify the memory.
54   *  This initializes the instance with no parents, no clique membership.   *  This initializes the instance with no parents, no clique membership.
# Line 66  extern struct Instance *CreateSimulation Line 62  extern struct Instance *CreateSimulation
62    
63  extern struct Instance *CreateModelInstance(struct TypeDescription *type);  extern struct Instance *CreateModelInstance(struct TypeDescription *type);
64  /**<  /**<
  *  <!--  struct Instance *CreateModelInstance(type)                   -->  
  *  <!--  struct TypeDescription *type;                                -->  
65   *  Create an instance of the type described by "type".  The memory of "type"   *  Create an instance of the type described by "type".  The memory of "type"
66   *  is used by the instance structure, so do not dispose or modify the memory.   *  is used by the instance structure, so do not dispose or modify the memory.
67   *  This initializes the instance with no parents, no clique membership,   *  This initializes the instance with no parents, no clique membership,
# Line 78  extern struct Instance *CreateModelInsta Line 72  extern struct Instance *CreateModelInsta
72    
73  extern struct Instance *CreateDummyInstance(struct TypeDescription *type);  extern struct Instance *CreateDummyInstance(struct TypeDescription *type);
74  /**<  /**<
  *  <!--  struct Instance *CreateDummyInstance(type)                   -->  
  *  <!--  struct TypeDescription *type;                                -->  
75   *  Returns a DummyInstance using the type given, which must be   *  Returns a DummyInstance using the type given, which must be
76   *  the dummy_type named BASE_UNSELECTED.   *  the dummy_type named BASE_UNSELECTED.
77   *  The instance returned is UNIVERSAL.<br><br>   *  The instance returned is UNIVERSAL.<br><br>
# Line 89  extern struct Instance *CreateDummyInsta Line 81  extern struct Instance *CreateDummyInsta
81    
82  extern struct Instance *CreateRealInstance(struct TypeDescription *type);  extern struct Instance *CreateRealInstance(struct TypeDescription *type);
83  /**<  /**<
  *  <!--  struct Instance *CreateRealInstance(type)                    -->  
  *  <!--  struct TypeDescription *type;                                -->  
84   *  Create a real instance whose type is described by "type".  The instance   *  Create a real instance whose type is described by "type".  The instance
85   *  struct will use the memory pointed to by type, so don't destroy this   *  struct will use the memory pointed to by type, so don't destroy this
86   *  structure.  It is cheaper to copy an instance of a real, than to create   *  structure.  It is cheaper to copy an instance of a real, than to create
# Line 104  extern struct Instance *CreateRealInstan Line 94  extern struct Instance *CreateRealInstan
94    
95  extern struct Instance *CreateIntegerInstance(struct TypeDescription *type);  extern struct Instance *CreateIntegerInstance(struct TypeDescription *type);
96  /**<  /**<
  *  <!--  struct Instance *CreateIntegerInstance(type)                 -->  
  *  <!--  struct TypeDescription *type;                                -->  
97   *  Create an integer instance whose type is described by "type".  The memory   *  Create an integer instance whose type is described by "type".  The memory
98   *  pointed to by type is used by the instance, so don't destroy it or modify   *  pointed to by type is used by the instance, so don't destroy it or modify
99   *  it.   *  it.
# Line 119  extern struct Instance *CreateIntegerIns Line 107  extern struct Instance *CreateIntegerIns
107    
108  extern struct Instance *CreateBooleanInstance(struct TypeDescription *type);  extern struct Instance *CreateBooleanInstance(struct TypeDescription *type);
109  /**<  /**<
  *  <!--  struct Instance *CreateBooleanInstance(type)                 -->  
  *  <!--  struct TypeDescription *type;                                -->  
110   *  Create a boolean instance whose type is described by "type".  The   *  Create a boolean instance whose type is described by "type".  The
111   *  instance structure will use the memory pointed to by type, so don't   *  instance structure will use the memory pointed to by type, so don't
112   *  modify it or free it.   *  modify it or free it.
# Line 132  extern struct Instance *CreateBooleanIns Line 118  extern struct Instance *CreateBooleanIns
118    
119  extern struct Instance *CreateSetInstance(struct TypeDescription *type, int intset);  extern struct Instance *CreateSetInstance(struct TypeDescription *type, int intset);
120  /**<  /**<
  *  <!--  struct Instance *CreateSetInstance(type,intset)              -->  
  *  <!--  struct TypeDescription *type;                                -->  
  *  <!--  int intset;                                                  -->  
121   *  Create a set instance whose type is described by "type".  The instance   *  Create a set instance whose type is described by "type".  The instance
122   *  will use the memory pointed to by type, so don't modify it or free it.   *  will use the memory pointed to by type, so don't modify it or free it.
123   *  Set instances don't have defaults.<br><br>   *  Set instances don't have defaults.<br><br>
# Line 145  extern struct Instance *CreateSetInstanc Line 128  extern struct Instance *CreateSetInstanc
128    
129  extern struct Instance *CreateSymbolInstance(struct TypeDescription *type);  extern struct Instance *CreateSymbolInstance(struct TypeDescription *type);
130  /**<  /**<
  *  <!--  struct Instance *CreateSymbolInstance(type)                  -->  
  *  <!--  struct TypeDescription *type;                                -->  
131   *  Create a symbol instance whose type is described by "type".  The   *  Create a symbol instance whose type is described by "type".  The
132   *  instance will use the memory pointed by type type, so don't modify   *  instance will use the memory pointed by type type, so don't modify
133   *  it or free it.   *  it or free it.
# Line 158  extern struct Instance *CreateSymbolInst Line 139  extern struct Instance *CreateSymbolInst
139  extern struct Instance *CreateArrayInstance(struct TypeDescription *type,  extern struct Instance *CreateArrayInstance(struct TypeDescription *type,
140                                              unsigned long index);                                              unsigned long index);
141  /**<  /**<
  *  <!--  struct Instance *CreateArrayInstance(type,index)             -->  
  *  <!--  struct TypeDescription *type;                                -->  
  *  <!--  unsigned long index;                                         -->  
142   *  Create an array instance whose type is described by "set".  The instance   *  Create an array instance whose type is described by "set".  The instance
143   *  will use the memory pointed to by type, so don't modify it or free it.<br><br>   *  will use the memory pointed to by type, so don't modify it or free it.<br><br>
144   *   *
# Line 171  extern struct Instance *CreateArrayInsta Line 149  extern struct Instance *CreateArrayInsta
149  extern struct Instance *CreateRelationInstance(struct TypeDescription *type,  extern struct Instance *CreateRelationInstance(struct TypeDescription *type,
150                                                 enum Expr_enum reltype);                                                 enum Expr_enum reltype);
151  /**<  /**<
  *  <!--  struct Instance *CreateRelationInstance(type,reltype)        -->  
  *  <!--  struct TypeDescription *type;                                -->  
  *  <!--  enum Expr_enum reltype;                                      -->  
152   *  Create a relation instance who type is described by "type".  The instance   *  Create a relation instance who type is described by "type".  The instance
153   *  will use the memory pointed to by type, so don't modify it or free it.   *  will use the memory pointed to by type, so don't modify it or free it.
154   *  reltype is one of e_glassbox, e_blackbox, e_opcode, e_tokens and must   *  reltype is one of e_glassbox, e_blackbox, e_opcode, e_tokens and must
# Line 182  extern struct Instance *CreateRelationIn Line 157  extern struct Instance *CreateRelationIn
157    
158  extern struct Instance *CreateLogRelInstance(struct TypeDescription *type);  extern struct Instance *CreateLogRelInstance(struct TypeDescription *type);
159  /**<  /**<
  *  <!--  struct Instance *CreateLogRelInstance(type)                  -->  
  *  <!--  struct TypeDescription *type;                                -->  
160   *  Create a logical relation instance. The instance will use the memory   *  Create a logical relation instance. The instance will use the memory
161   *  pointed to by type, so don't modify it or free it.   *  pointed to by type, so don't modify it or free it.
162   *  the type is always e_bol_token.   *  the type is always e_bol_token.
# Line 191  extern struct Instance *CreateLogRelInst Line 164  extern struct Instance *CreateLogRelInst
164    
165  extern struct Instance *CreateWhenInstance(struct TypeDescription *type);  extern struct Instance *CreateWhenInstance(struct TypeDescription *type);
166  /**<  /**<
  *  <!--  struct Instance *CreateWhenInstance(type)                    -->  
  *  <!--  struct TypeDescription *type;                                -->  
167   *  Create a when instance. The instance will use the memory   *  Create a when instance. The instance will use the memory
168   *  pointed to by type, so don't modify it or free it.   *  pointed to by type, so don't modify it or free it.
169   */   */
170    
171  #endif  /* __CREATEINST_H_SEEN__ */  #endif  /* ASC_CREATEINST_H */
172    

Legend:
Removed from v.302  
changed lines
  Added in v.303

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22