Revision 1974 trunk/src/linad99/ivector.h

ivector.h (revision 1974)
40 40

  
41 41
#ifndef __ADMB_IVECTOR_H__
42 42
#define __ADMB_IVECTOR_H__
43
#include <iostream>
44
using std::istream;
45
using std::ostream;
43 46

  
47
class ivector;
48

  
49
class preivector
50
{
51
  ivector *p;
52
  int lb;
53
  int ub;
54
  inline preivector(ivector * _p, int _lb, int _ub)
55
  {
56
    p = _p;
57
    lb = _lb, ub = _ub;
58
  }
59
  friend class ivector;
60
};
61

  
62
class uistream;
63
class uostream;
64
class vector_shapex;
65
class lvector;
66
class dvector;
67
class random_number_generator;
68
class ad_integer;
69
class index_type;
70

  
44 71
/**
45 72
*/
46 73
class ivector
......
202 229
}
203 230
#endif
204 231

  
232
int allocated(const ivector & v);
233

  
205 234
ivector operator+(const ivector& v, const ivector& w);
206 235
ivector operator-(const ivector& v, const ivector& w);
207 236
ivector operator+(const ivector& v, int w);

Also available in: Unified diff