Ignore:
Timestamp:
Feb 1, 2008, 5:35:32 PM (14 years ago)
Author:
Peter
Message:

changing class names vectorView => VectorView? and vectorBase => VectorBase?. Refs #256

File:
1 moved

Legend:

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

    r1013 r1015  
    2929*/
    3030
    31 #include "vectorBase.h"
     31#include "VectorBase.h"
    3232#include "Exception.h"
    3333
     
    8585  */
    8686
    87   class vectorView : public vectorBase
     87  class VectorView : public VectorBase
    8888  {
    8989  public:
     
    9191       \brief Default constructor.
    9292    */
    93     vectorView(void);
     93    VectorView(void);
    9494
    9595    /**
    9696       \brief The copy constructor.
    97     */
    98     vectorView(vectorBase& other);
    99     vectorView(vectorView& other);
     97    */ 
     98    VectorView(VectorBase& other);
     99    VectorView(VectorView& other);
    100100    // Peter, privatize
    101     vectorView(const vectorView& other);
     101    VectorView(const VectorView& other);
    102102
    103103    /**
    104104       \brief VectorView constructor.
    105105
    106        Create a view of vectorView \a v, with starting index \a offset,
     106       Create a view of VectorView \a v, with starting index \a offset,
    107107       size \a n, and an optional \a stride.
    108108
    109        A vectorView view can be used as any vectorView with the difference
     109       A VectorView view can be used as any VectorView with the difference
    110110       that changes made to the view will also change the object that
    111111       is viewed. Also, using the copy constructor will create a new
    112        vectorView object that is a copy of whatever is viewed. If a copy
     112       VectorView object that is a copy of whatever is viewed. If a copy
    113113       of the view is needed then you should use this constructor to
    114114       obtain a copy.
     
    120120       \throw GSL_error if a view cannot be set up.
    121121    */
    122     vectorView(vectorBase& v, size_t offset, size_t n, size_t stride=1);
     122    VectorView(VectorBase& v, size_t offset, size_t n, size_t stride=1);
    123123    // Peter, privatize
    124     vectorView(const vectorBase& v, size_t offset, size_t n, size_t stride=1);
     124    VectorView(const VectorBase& v, size_t offset, size_t n, size_t stride=1);
    125125
    126126    ///
    127127    /// Matrix row/column view constructor.
    128128    ///
    129     /// Create a row/column vectorView view of matrix \a m, pointing at
     129    /// Create a row/column VectorView view of matrix \a m, pointing at
    130130    /// row/column \a i. The parameter \a row is used to set whether
    131131    /// the view should be a row or column view. If \a row is set to
     
    133133    /// naturally, a column view otherwise.
    134134    ///
    135     /// A vectorView view can be used as any vectorView with the difference
     135    /// A VectorView view can be used as any VectorView with the difference
    136136    /// that changes made to the view will also change the object that
    137137    /// is viewed. Also, using the copy constructor will create a new
    138     /// vectorView object that is a copy of whatever is viewed. If a copy
    139     /// of the view is needed then you should use the vectorView view
     138    /// VectorView object that is a copy of whatever is viewed. If a copy
     139    /// of the view is needed then you should use the VectorView view
    140140    /// constructor to obtain a copy.
    141141    ///
     
    144144    /// use is undefined.
    145145    ///
    146     vectorView(matrix& m, size_t i, bool row=true);
     146    VectorView(matrix& m, size_t i, bool row=true);
    147147
    148148    // Peter should be private
    149     vectorView(const matrix& m, size_t i, bool row=true);
     149    VectorView(const matrix& m, size_t i, bool row=true);
    150150
    151151    /**
    152152     */
    153     //vectorView(proxy p);
     153    //VectorView(proxy p);
    154154
    155155    ///
    156156    /// The destructor.
    157157    ///
    158     ~vectorView(void);
     158    ~VectorView(void);
    159159
    160160    /**
     
    170170       \throw GSL_error if dimensions mis-match.
    171171    */
    172     const vectorBase& operator=(const vectorBase&);
    173     const vectorBase& operator=(const vectorView&);
     172    const VectorBase& operator=(const VectorBase&);
     173    const VectorBase& operator=(const VectorView&);
    174174
    175     //const vectorBase& operator=(proxy);
     175    //const VectorBase& operator=(proxy);
    176176
    177177  private:
    178     const vectorBase& assign(const vectorBase& other);
     178    const VectorBase& assign(const VectorBase& other);
    179179    void delete_allocated_memory(void);
    180180
Note: See TracChangeset for help on using the changeset viewer.