Ignore:
Timestamp:
Feb 23, 2008, 9:40:35 PM (15 years ago)
Author:
Peter
Message:

using SmartPtr? in KernelLookup? rather than doing the ref count myself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/KernelLookup.h

    r1132 r1133  
    2828
    2929#include "Kernel.h"
    30 #include "DataLookup2D.h"
    31 #include "MatrixLookup.h"
    3230#include "yat/utility/Container2DIterator.h"
    3331#include "yat/utility/iterator_traits.h"
     32#include "yat/utility/SmartPtr.h"
    3433#include "yat/utility/StrideIterator.h"
    35 
    3634
    3735#include <vector>
     
    4139namespace classifier {
    4240
     41  class DataLookup2D;
    4342  class KernelFunction;
     43  class MatrixLookup;
     44  class MatrixLookupWeighted;
    4445
    4546  ///
     
    337338
    338339    std::vector<size_t> column_index_;
    339     const Kernel* kernel_;
    340     ///
    341     /// poiter telling how many owners to underlying data. NULL if
    342     /// this is not an owner.
    343     ///
    344     u_int* ref_count_;
     340    utility::SmartPtr<const Kernel> kernel_;
    345341    std::vector<size_t> row_index_;
    346342   
Note: See TracChangeset for help on using the changeset viewer.