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 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/vector.cc

    r1010 r1015  
    4444
    4545  vector::vector(void)
    46     : vectorBase()
     46    : VectorBase()
    4747  {
    4848  }
     
    5050
    5151  vector::vector(size_t n, double init_value)
    52     : vectorBase(gsl_vector_alloc(n))
     52    : VectorBase(gsl_vector_alloc(n))
    5353  {
    5454    if (!vec_)
     
    6060
    6161  vector::vector(const vector& other)
    62     : vectorBase(create_gsl_vector_copy(other))
    63   {
    64   }
    65 
    66 
    67   vector::vector(const vectorBase& other)
    68     : vectorBase(create_gsl_vector_copy(other))
     62    : VectorBase(create_gsl_vector_copy(other))
     63  {
     64  }
     65
     66
     67  vector::vector(const VectorBase& other)
     68    : VectorBase(create_gsl_vector_copy(other))
    6969  {
    7070  }
     
    7373  vector::vector(std::istream& is, char sep)
    7474    throw (utility::IO_error, std::exception)
    75     : vectorBase()
     75    : VectorBase()
    7676  {
    7777    // read the data file and store in stl vectors (dynamically
     
    155155
    156156
    157   gsl_vector* vector::create_gsl_vector_copy(const vectorBase& other) const
     157  gsl_vector* vector::create_gsl_vector_copy(const VectorBase& other) const
    158158  {
    159159    gsl_vector* vec = gsl_vector_alloc(other.size());
     
    193193  /*
    194194  //Peter use swap idiom
    195   const vectorBase& vector::operator=( const vectorBase& other )
     195  const VectorBase& vector::operator=( const VectorBase& other )
    196196  {
    197197    if (!other.size())
     
    206206  */
    207207
    208   const vectorBase& vector::operator=( const vector& other )
     208  const VectorBase& vector::operator=( const vector& other )
    209209  {
    210210    return assign(other);
     
    212212
    213213  /* 
    214   const vectorBase& vector::assign(vectorBase& other)
     214  const VectorBase& vector::assign(VectorBase& other)
    215215  {
    216216    assign(other);
     
    218218  */
    219219
    220   const vectorBase& vector::assign(const vectorBase& other)
     220  const VectorBase& vector::assign(const VectorBase& other)
    221221  {
    222222    if (!other.size())
Note: See TracChangeset for help on using the changeset viewer.