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 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/vector_test.cc

    r1009 r1015  
    2929#include "yat/utility/utility.h"
    3030#include "yat/utility/vector.h"
    31 #include "yat/utility/vectorView.h"
     31#include "yat/utility/VectorView.h"
    3232
    3333#include <fstream>
     
    7474  for (size_t i=0; i<vec.size(); i+=2)
    7575    sum_before+=vec[i];
    76   utility::vectorView vec_view(vec,0,6,2);
     76  utility::VectorView vec_view(vec,0,6,2);
    7777  sum_after=utility::sum(vec_view);
    7878  ok &= (sum_after==sum_before);
     
    8888    *message << "const view implementation" << std::endl;
    8989    const utility::vector vv(10,3.0);
    90     utility::vectorView vview(vv,0,5,1);
     90    utility::VectorView vview(vv,0,5,1);
    9191    // const utility::vector vview(vv,0,5,1); // this is the proper line
    9292    utility::vector vv2(5,2.0);
     
    148148    *message << "assignment operator on view" << std::endl;
    149149    vec[3]=vec[4]=vec[5]=13;
    150     utility::vectorView vec_view(vec,3,3,1);
     150    utility::VectorView vec_view(vec,3,3,1);
    151151    utility::vector vec2(3,123.0);
    152152    vec_view=vec2;
     
    173173      this_ok=false;
    174174    *message << "\tcloning vector view" << std::endl;
    175     utility::vectorView* vec_view=new utility::vectorView(vec,3,3,1);
    176     utility::vectorView vec_view2(*vec_view);
     175    utility::VectorView* vec_view=new utility::VectorView(vec,3,3,1);
     176    utility::VectorView vec_view2(*vec_view);
    177177    if (!vec_view2.isview())
    178178      this_ok=false;
Note: See TracChangeset for help on using the changeset viewer.