Changeset 1127 for trunk/yat/utility


Ignore:
Timestamp:
Feb 22, 2008, 11:46:59 PM (14 years ago)
Author:
Peter
Message:

undoing [1126] which did not compile. forgot to run make check. sorry for any...

Location:
trunk/yat/utility
Files:
2 edited

Legend:

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

    r1126 r1127  
    4747
    4848
    49   Index::Index(const std::vector<size_t>& vec)
    50     : index_(SmartPtr<const std::vector<size_t> >(new std::vector<size_t>(vec)))
    51   {}
    52 
    53 
    5449  Index::Index(const Index& a, const Index& b)
    5550  {
     
    6863
    6964
    70   const std::vector<size_t>& Index::vector(void) const
    71   {
    72     return *index_;
    73   }
    74 
    75 
    7665  const size_t& Index::operator[](size_t i) const
    7766  {
  • trunk/yat/utility/Index.h

    r1126 r1127  
    6363
    6464    /**
    65        \brief Constructor
    66 
    67        \a vec is copied
    68      */
    69     explicit Index(const std::vector<size_t>& vec);
     65       \brief access operator
     66    */
     67    const size_t& operator[](size_t) const;
    7068
    7169    /**
     
    7371    */
    7472    size_t size(void) const;
    75 
    76     /**
    77        \brief underlying std::vector
    78     */
    79     const std::vector<size_t>& vector(void) const;
    80 
    81     /**
    82        \brief access operator
    83     */
    84     const size_t& operator[](size_t) const;
    8573
    8674  private:
Note: See TracChangeset for help on using the changeset viewer.