Revision 1975 trunk/src/linad99/dvector.h

dvector.h (revision 1975)
41 41
#ifndef __ADMB_DVECTOR_H__
42 42
#define __ADMB_DVECTOR_H__
43 43

  
44
#include <iostream>
45
using std::istream;
46
using std::ostream;
47
#include <vector_shapex.h>
48
#include <ad_exit.h>
49

  
44 50
class dvector;
45 51

  
46 52
class predvector
......
63 69
class prevariable;
64 70
class dmatrix;
65 71
class dvar_matrix;
72
class random_number_generator;
73
class ad_integer;
74
class index_type;
75
class ivector;
76
class lvector;
77
class uistream;
78
class uostream;
66 79

  
67 80
/** Vector of double precision numbers.
68 81
A basic container class for a one dimensional array of double precision
......
231 244
   /// Get number of elements in array.
232 245
   int size() const
233 246
   {
234
      return (index_max - index_min + 1);
247
      return v ? index_max - index_min + 1 : 0;
235 248
   }
236 249

  
237 250
   dvector & shift(int min);
238 251

  

Also available in: Unified diff