Ignore:
Timestamp:
Feb 2, 2008, 10:29:29 PM (14 years ago)
Author:
Peter
Message:

going back to previous design in which view and const_view are in different classes. Having them in same didnt work as expected. There is a problem converting vector::iterator to vector::const_iterator. I'll open a separate ticket for this issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/VectorView.h

    r1026 r1027  
    2929*/
    3030
    31 #include "VectorBase.h"
     31#include "VectorMutable.h"
    3232#include "Exception.h"
    3333
     
    8585  */
    8686
    87   class VectorView : public VectorBase
     87  class VectorView : public VectorMutable
    8888  {
    8989  public:
     
    9696       \brief The copy constructor.
    9797    */
    98     VectorView(VectorBase& other);
     98    VectorView(VectorMutable& other);
    9999    VectorView(VectorView& other);
    100     // Peter, privatize
    101     VectorView(const VectorView& other);
    102100
    103101    /**
     
    120118       \throw GSL_error if a view cannot be set up.
    121119    */
    122     VectorView(VectorBase& v, size_t offset, size_t n, size_t stride=1);
    123     // Peter, privatize
    124     VectorView(const VectorBase& v, size_t offset, size_t n, size_t stride=1);
     120    VectorView(VectorMutable& v, size_t offset, size_t n, size_t stride=1);
    125121
    126122    ///
     
    146142    VectorView(matrix& m, size_t i, bool row=true);
    147143
    148     // Peter should be private
    149     VectorView(const matrix& m, size_t i, bool row=true);
    150 
    151144    /**
    152145     */
    153     //VectorView(proxy p);
     146    VectorView(proxy p);
    154147
    155148    ///
     
    173166    const VectorView& operator=(const VectorView&);
    174167
    175     //const VectorBase& operator=(proxy);
    176 
    177168  private:
    178169    const VectorView& assign(const VectorBase& other);
Note: See TracChangeset for help on using the changeset viewer.