Revision 1596 trunk/src/linad99/fvar.hpp

fvar.hpp (revision 1596)
8585 8585
class data_int;
8586 8586

  
8587 8587
/**
8588
 * Description not yet available.
8589
 * \param
8590
 */
8588
Stores integer.
8589
*/
8591 8590
class ad_integer
8592 8591
{
8593
 protected:
8594
   int d;
8595
 public:
8596
   operator  int () const
8597
   {
8598
      return d;
8599
   }
8600
   //operator int () { return d;}
8601
   ad_integer(const int &_d, const adkludge&): d(_d)
8602
   {
8603
   }
8604
   ad_integer(int _d):d(_d)
8605
   {
8606
   }
8607
   ad_integer(const index_type & it);
8608
   ad_integer make_ad_integer(int _d)
8609
   {
8610
      adkludge adk;
8611
      return ad_integer(d, adk);
8612
   }
8613
#if defined(_MSC_VER)
8614
//#  if (_MSC_VER  < 1200)
8615
   ad_integer(const data_int & _d);
8616
//#  endif
8617
#else
8618
   ad_integer(const data_int & _d);
8619
#endif
8592
protected:
8593
  int d;
8594
public:
8595
  operator int () const
8596
  {
8597
    return d;
8598
  }
8599
  ad_integer(const int &_d, const adkludge&): d(_d)
8600
  {
8601
  }
8602
  ad_integer(int _d):d(_d)
8603
  {
8604
  }
8605
  ad_integer(const index_type& it);
8606
  ad_integer make_ad_integer(int _d)
8607
  {
8608
    adkludge adk;
8609
    Should parameter be d or _d?
8610
    return ad_integer(d, adk);
8611
  }
8612
  ad_integer(const data_int & _d);
8620 8613
};
8621 8614

  
8622 8615
/**
......
9420 9413
};
9421 9414

  
9422 9415
/**
9423
 * Description not yet available.
9424
 * \param
9425
 */
9416
Stores double value.
9417
*/
9426 9418
class ad_double
9427 9419
{
9428
 protected:
9429
   double d;
9430
 public:
9431
   operator  double () const
9432
   {
9433
      return d;
9434
   }
9435
   ad_double(const double& _d, const adkludge&):d(_d)
9436
   {
9437
   }
9438
   ad_double(double _d):d(_d)
9439
   {
9440
   }
9441
   ad_double(const double_index_type & it);
9442
   ad_double make_ad_double(double _d)
9443
   {
9444
      adkludge adk;
9445
      return ad_double(d, adk);
9446
   }
9447
   ad_double & operator =(const ad_double &);
9420
protected:
9421
  double d;
9422
public:
9423
  operator double () const
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff