Revision 1108 trunk/src/nh99/shared.cpp

shared.cpp (revision 1108)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6 6
 */
7 7
#include <admodel.h>
8
 
8

  
9 9
#  if defined(USE_SHARE_FLAGS)
10 10
  static int integer(const index_type& it)
11 11
  {
......
179 179
  }
180 180

  
181 181
  void initial_params::setshare(const index_type& sf,
182
    const index_type& af) 
183
  { 
182
    const index_type& af)
183
  {
184 184
    cerr << " setshare not yet defined for this class " << endl;
185 185
    ad_exit(1);
186 186
  }
187 187

  
188 188
  shareinfo::~shareinfo(void)
189
  { 
190
    delete sflags; 
191
    delete original_sflags; 
192
    delete aflags; 
193
    delete invflags; 
194
    delete bmap; 
195
    sflags=0; 
196
    aflags=0; 
197
    original_sflags=0; 
198
    invflags=0; 
189
  {
190
    delete sflags;
191
    delete original_sflags;
192
    delete aflags;
193
    delete invflags;
194
    delete bmap;
195
    sflags=0;
196
    aflags=0;
197
    original_sflags=0;
198
    invflags=0;
199 199
    current_phase=-1;
200 200
    maxshare=0;
201 201
    bmap=0;
202 202
  }
203 203

  
204 204
  int &  shareinfo::get_current_phase(void)
205
  { 
206
    return current_phase; 
205
  {
206
    return current_phase;
207 207
  }
208 208
  index_type * shareinfo::get_original_shareflags(void)
209
  { 
210
    return original_sflags; 
209
  {
210
    return original_sflags;
211 211
  }
212 212
  index_type * shareinfo::get_shareflags(void)
213
  { 
214
    return sflags; 
213
  {
214
    return sflags;
215 215
  }
216 216
  i3_array & shareinfo::get_bmap(void)
217
  { 
217
  {
218 218
    return *bmap;
219 219
  }
220 220
  index_type * shareinfo::get_invflags(void)
221
  { 
221
  {
222 222
    return invflags;
223 223
  }
224 224
  index_type * shareinfo::get_activeflags(void)
225
  { 
225
  {
226 226
    return aflags;
227 227
  }
228 228
  void shareinfo::set_invflags(const index_type& sf)
229
  { 
229
  {
230 230
    invflags=new index_type(sf);
231 231
  }
232 232
  void shareinfo::set_bmap(const i3_array & _bmap)
233
  { 
233
  {
234 234
    bmap=new i3_array(_bmap);
235 235
  }
236 236
  void shareinfo::reset_bmap(const i3_array & _bmap)
237
  { 
238
    if (bmap) 
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff