Changeset 663


Ignore:
Timestamp:
Sep 29, 2006, 11:42:47 AM (16 years ago)
Author:
Peter
Message:

added assignment operator in Target

Location:
trunk/c++_tools/classifier
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/classifier/Target.cc

    r615 r663  
    129129
    130130
     131  const Target& Target::operator=(const Target& other)
     132  {
     133    binary_ = other.binary_;
     134    classes_ = other.classes_;
     135    class_map_ = other.class_map_;
     136    labels_ = other.labels_;
     137    return *this;
     138  }
     139
     140
    131141}} // of namespace classifier and namespace theplu
  • trunk/c++_tools/classifier/Target.h

    r615 r663  
    128128    { return this->operator()(sample); }
    129129
     130    ///
     131    /// @brief assignment operator
     132    ///
     133    const Target& operator=(const Target&);
    130134
    131135  private:
Note: See TracChangeset for help on using the changeset viewer.