Ignore:
Timestamp:
Feb 22, 2008, 12:18:41 AM (14 years ago)
Author:
Peter
Message:

vector is now Vector

File:
1 moved

Legend:

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

    r1118 r1120  
    5858  */
    5959
    60   class vector : public VectorMutable
     60  class Vector : public VectorMutable
    6161  {
    6262  public:
     
    6464       \brief The default constructor.
    6565    */
    66     vector(void);
     66    Vector(void);
    6767
    6868    /**
     
    7272       \throw GSL_error if memory allocation fails.
    7373    */
    74     vector(size_t n, double init_value=0);
     74    Vector(size_t n, double init_value=0);
    7575
    7676    /**
     
    8080       fails.
    8181    */
    82     vector(const vector& other);
     82    Vector(const Vector& other);
    8383
    8484    /**
     
    8888       fails.
    8989    */
    90     vector(const VectorBase& other);
     90    Vector(const VectorBase& other);
    9191
    9292    /**
     
    9797       sep. When delimiter \a sep is used empty elements are stored as
    9898       NaN's (except that empty lines are ignored). The end of input
    99        to the vector is at end of file marker.
     99       to the Vector is at end of file marker.
    100100
    101101       \throw GSL_error if memory allocation fails, IO_error if
    102102       unexpected input is found in the input stream.
    103103    */
    104     explicit vector(std::istream &, char sep='\0')
     104    explicit Vector(std::istream &, char sep='\0')
    105105      throw(utility::IO_error, std::exception);
    106106
     
    108108    /// The destructor.
    109109    ///
    110     ~vector(void);
     110    ~Vector(void);
    111111
    112112    /**
     
    116116
    117117    /**
    118       \brief Resize vector
     118      \brief Resize Vector
    119119
    120120      All elements are set to \a init_value.
    121121
    122122      \note Underlying GSL vector is destroyed and a view into this
    123       vector becomes invalid.
     123      Vector becomes invalid.
    124124    */
    125125    void resize(size_t, double init_value=0);
     
    128128       \brief The assignment operator.
    129129
    130        \note Invalidates views of vector.
     130       \note Invalidates views of Vector.
    131131
    132        \return A const reference to the resulting vector.
     132       \return A const reference to the resulting Vector.
    133133    */
    134     const vector& operator=(const vector&);
     134    const Vector& operator=(const Vector&);
    135135
    136136    /**
    137137       \brief The assignment operator.
    138138
    139        \note Invalidates views of vector.
     139       \note Invalidates views of Vector.
    140140
    141        \return A const reference to the resulting vector.
     141       \return A const reference to the resulting Vector.
    142142    */
    143     const vector& operator=(const VectorBase&);
     143    const Vector& operator=(const VectorBase&);
    144144
    145145  private:
    146     const vector& assign(const VectorBase& other);
     146    const Vector& assign(const VectorBase& other);
    147147
    148148    /**
     
    163163
    164164  /**
    165      \brief Swap vector elements by copying.
     165     \brief Swap Vector elements by copying.
    166166
    167      The two vectors must have the same length.
     167     The two Vectors must have the same length.
    168168
    169      \throw GSL_error if vector lengths differs.
     169     \throw GSL_error if Vector lengths differs.
    170170  */
    171   void swap(vector&, vector&);
     171  void swap(Vector&, Vector&);
    172172
    173173}}} // of namespace utility, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.