Ignore:
Timestamp:
Feb 1, 2008, 5:35:32 PM (13 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.cc

    r1013 r1015  
    2525*/
    2626
    27 #include "vectorView.h"
     27#include "VectorView.h"
    2828#include "matrix.h"
    2929#include "utility.h"
     
    4343
    4444
    45   vectorView::vectorView(void)
    46     : vectorBase(), view_(NULL), const_view_(NULL)
    47   {
    48   }
    49 
    50 
    51   vectorView::vectorView(vectorView& other)
    52     : vectorBase(), const_view_(NULL)
     45  VectorView::VectorView(void)
     46    : VectorBase(), view_(NULL), const_view_(NULL)
     47  {
     48  }
     49
     50
     51  VectorView::VectorView(VectorView& other)
     52    : VectorBase(), const_view_(NULL)
    5353  {
    5454    view_ = new gsl_vector_view(gsl_vector_subvector(other.gsl_vector_p(),
     
    5959
    6060
    61   vectorView::vectorView(const vectorView& other)
    62     : vectorBase(), view_(NULL)
     61  VectorView::VectorView(const VectorView& other)
     62    : VectorBase(), view_(NULL)
    6363  {
    6464    const_view_ = new gsl_vector_const_view(
     
    6868
    6969
    70   vectorView::vectorView(vectorBase& other)
    71     : vectorBase(other.gsl_vector_p()), const_view_(NULL)
     70  VectorView::VectorView(VectorBase& other)
     71    : VectorBase(other.gsl_vector_p()), const_view_(NULL)
    7272  {
    7373    view_ =
     
    7979
    8080  /*
    81   vectorView::vectorView(const vectorBase& other)
    82     : vectorBase(other.const_vec_), view_(NULL)
     81  VectorView::VectorView(const VectorBase& other)
     82    : VectorBase(other.const_vec_), view_(NULL)
    8383  {
    8484  }
    8585  */
    8686
    87   vectorView::vectorView(vectorBase& v, size_t offset,size_t n,size_t stride)
    88     : vectorBase(), const_view_(NULL)
     87  VectorView::VectorView(VectorBase& v, size_t offset,size_t n,size_t stride)
     88    : VectorBase(), const_view_(NULL)
    8989  {
    9090    view_ =
     
    9595
    9696
    97   vectorView::vectorView(const vectorBase& v, size_t offset,size_t n,
     97  VectorView::VectorView(const VectorBase& v, size_t offset,size_t n,
    9898                         size_t stride)
    99     : vectorBase(), view_(NULL)
     99    : VectorBase(), view_(NULL)
    100100  {
    101101    const_view_ = new gsl_vector_const_view(
     
    106106
    107107
    108   vectorView::vectorView(matrix& m, size_t i, bool row)
    109     : vectorBase(), const_view_(NULL)
     108  VectorView::VectorView(matrix& m, size_t i, bool row)
     109    : VectorBase(), const_view_(NULL)
    110110  {
    111111    view_=new gsl_vector_view(row ?
     
    116116
    117117
    118   vectorView::vectorView(const matrix& m, size_t i, bool row)
    119     : vectorBase(), view_(NULL)
     118  VectorView::VectorView(const matrix& m, size_t i, bool row)
     119    : VectorBase(), view_(NULL)
    120120  {
    121121    const_view_ =
     
    128128
    129129  /*
    130   vectorView::vectorView(proxy p)
    131     : vectorBase()
     130  VectorView::VectorView(proxy p)
     131    : VectorBase()
    132132  {
    133133    view_ = new gsl_vector_view(gsl_vector_subvector(p.vec_, 0, p.vec_->size));
     
    136136  */
    137137
    138   vectorView::~vectorView(void)
     138  VectorView::~VectorView(void)
    139139  {
    140140    delete_allocated_memory();
     
    142142
    143143
    144   const vectorBase& vectorView::assign(const vectorBase& other )
     144  const VectorBase& VectorView::assign(const VectorBase& other )
    145145  {
    146146    if (size()!=other.size())
    147       throw utility::GSL_error("vectorView::dimension mis-match");
     147      throw utility::GSL_error("VectorView::dimension mis-match");
    148148    if (!other.size())
    149149      return *this;
     
    154154
    155155
    156   bool vectorView::isview(void) const
     156  bool VectorView::isview(void) const
    157157  {
    158158    return true;
     
    161161
    162162
    163   const vectorBase& vectorView::operator=(const vectorView& other )
     163  const VectorBase& VectorView::operator=(const VectorView& other )
    164164  {
    165165    return assign(other);
     
    167167
    168168 
    169   const vectorBase& vectorView::operator=(const vectorBase& other )
     169  const VectorBase& VectorView::operator=(const VectorBase& other )
    170170  {
    171171    return assign(other);
     
    174174 
    175175  /*
    176   const vectorBase& vectorView::operator=(proxy p)
     176  const VectorBase& VectorView::operator=(proxy p)
    177177  {
    178178    if (size()!=p.vec_->size)
    179       throw utility::GSL_error("vectorView::dimension mis-match");
     179      throw utility::GSL_error("VectorView::dimension mis-match");
    180180    if (!size())
    181181      return *this;
     
    187187  */
    188188
    189   void vectorView::delete_allocated_memory(void)
     189  void VectorView::delete_allocated_memory(void)
    190190  {
    191191    if (view_){
Note: See TracChangeset for help on using the changeset viewer.