Ignore:
Timestamp:
Sep 7, 2006, 7:11:18 AM (15 years ago)
Author:
Peter
Message:

fixes #132 and #95, and refs #135 replaced bool owner in DataLookup2D with ref_count u_int*. When the DataLookup2D does not own underlying data ref_count=NULL otherwise it points to a u_int telling how many owner there are of the data. When the counter reaches zero the data is deleted.

File:
1 edited

Legend:

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

    r628 r640  
    3030    : kf_(other.kf_), data_owner_(true)
    3131  {
    32     // Peter go through this code; look fishy!
    3332    data_ = other.data_->selected(index);
    34     if (data_w_){
     33    if (other.data_w_){
    3534      data_w_ = other.data_w_->selected(index);
    3635      weight_owner_=true;
Note: See TracChangeset for help on using the changeset viewer.