Ignore:
Timestamp:
Dec 26, 2006, 7:21:36 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #170. Almost all inlines removed, some classes have no cc file.

File:
1 edited

Legend:

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

    r704 r720  
    7272    /// @return number of subsets
    7373    ///
    74     inline u_long size(void) const { return sampler_.size(); }
     74    u_long size(void) const;
    7575
    7676    ///
    7777    /// @return the target for the total set
    7878    ///
    79     inline const Target& target(void) const { return sampler_.target(); }
    80 
     79    const Target& target(void) const;
    8180
    8281    ///
    8382    /// @return the sampler for the total set
    8483    ///
    85     //    inline const Sampler& sampler(void) const { return sampler_; }
    86 
     84    //    const Sampler& sampler(void) const;
    8785
    8886    ///
    8987    /// @return training data
    9088    ///
    91     inline const DataLookup2D& training_data(std::vector<DataLookup2D*>::
    92                                              size_type i) const
    93     { return *(training_data_[i]); }
     89    const DataLookup2D&
     90    training_data(std::vector<DataLookup2D*>::size_type i) const;
    9491
    9592    ///
    9693    /// @return training features
    9794    ///
    98     inline const std::vector<size_t>& training_features(std::vector<size_t>::
    99                                                         size_type i) const
    100     { return f_selector_ ? features_[i] : features_[0]; }
    101 
     95    const std::vector<size_t>&
     96    training_features(std::vector<size_t>::size_type i) const;
    10297
    10398    ///
    10499    /// @return training index
    105100    ///
    106     inline const std::vector<size_t>& training_index(std::vector<size_t>::
    107                                                      size_type i) const
    108     { return sampler_.training_index(i); }
     101    const std::vector<size_t>&
     102    training_index(std::vector<size_t>::size_type i) const;
    109103
    110104    ///
    111105    /// @return training target
    112106    ///
    113     inline const Target& training_target(std::vector<Target>::
    114                                          size_type i) const
    115     { return training_target_[i]; }
     107    const Target& training_target(std::vector<Target>::size_type i) const;
    116108
    117109    ///
    118110    /// @return validation data
    119111    ///
    120     inline const DataLookup2D& validation_data(std::vector<DataLookup2D*>::
    121                                                size_type i) const
    122     { return *(validation_data_[i]); }
     112    const DataLookup2D&
     113    validation_data(std::vector<DataLookup2D*>::size_type i) const;
    123114
    124115    ///
    125116    /// @return validation index
    126117    ///
    127     inline const std::vector<size_t>& validation_index(std::vector<size_t>::
    128                                                        size_type i) const
    129     { return sampler_.validation_index(i); }
     118    const std::vector<size_t>&
     119    validation_index(std::vector<size_t>::size_type i) const;
    130120
    131121    ///
    132122    /// @return validation target
    133123    ///
    134     inline const Target& validation_target(std::vector<Target>::
    135                                            size_type i) const
    136     { return validation_target_[i]; }
     124    const Target& validation_target(std::vector<Target>::size_type i) const;
    137125
    138126    ///
    139127    /// @return true if weighted
    140128    /// @todo remove this function
    141     //inline bool weighted(void) const { return weighted_; }
     129    //bool weighted(void) const;
    142130
    143131  private:
Note: See TracChangeset for help on using the changeset viewer.