Revision 1176 branches/threaded2merge/src/linad99/fvar.hpp

fvar.hpp (revision 1176)
602 602
 */
603 603
class vector_shape_pool:public dfpool
604 604
{
605
 public:
606
   vector_shape_pool(void);
607
   vector_shape_pool(int);
605
public:
606
  vector_shape_pool(void);
607
  vector_shape_pool(int);
608 608
};
609 609

  
610 610
/**
......
625 625
 */
626 626
class vector_shape
627 627
{
628
 public:
628
public:
629 629
#if defined(USE_VECTOR_SHAPE_POOL)
630
   static __thread vector_shape_pool *xpool;
631
   void *operator  new(size_t);
632
   void operator  delete(void *ptr, size_t n)
633
   {
634
      xpool->free(ptr);
635
   }
630
  static __thread vector_shape_pool *xpool;
631
  void* operator new(size_t);
632
  void operator delete(void *ptr, size_t n)
633
  {
634
    xpool->free(ptr);
635
  }
636 636
#endif
637 637
   unsigned int ncopies;
638 638
   void shift(int min);
639 639
   int index_min;
640 640
   int index_max;
641
 private:
641
private:
642 642
   friend class dvector;
643 643
   //friend class tdvector;
644 644
   friend class subdvector;
......
646 646
   friend class ivector;
647 647
   friend class lvector;
648 648
   friend class ptr_vector;
649
 public:
650
   int decr_ncopies(void)
651
   {
652
      return --ncopies;
653
   }
654
   int get_ncopies(void)
655
   {
656
      return ncopies;
657
   }
658
   int incr_ncopies(void)
659
   {
660
      return ++ncopies;
661
   }
662
   vector_shape(int lb, int lu)
663
   {
664
      index_min = lb;
665
      index_max = lu;
666
      ncopies = 0;
667
   }
668
   int indexmin() const
669
   {
670
      return index_min;
671
   }
672
   int indexmax() const
673
   {
674
      return index_max;
675
   }
649
public:
650
  int decr_ncopies(void)
651
  {
652
    return --ncopies;
653
  }
654
  int get_ncopies(void)
655
  {
656
    return ncopies;
657
  }
658
  int incr_ncopies(void)
659
  {
660
    return ++ncopies;
661
  }
662
  vector_shape(int lb, int lu)
663
  {
664
    index_min = lb;
665
    index_max = lu;
666
    ncopies = 0;
667
  }
668
  int indexmin() const
669
  {
670
    return index_min;
671
  }
672
  int indexmax() const
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff