! * \brief Get sizes in byte of this object */
| 205 | * \brief Get sizes in byte of this object |
| 206 | */ |
| 207 | size_t SizesInByte() const { |
| 208 | size_t ret = sizeof(is_sparse_) + sizeof(num_feature_); |
| 209 | for (int i = 0; i < num_feature_; ++i) { |
| 210 | ret += bin_mappers_[i]->SizesInByte(); |
| 211 | } |
| 212 | ret += bin_data_->SizesInByte(); |
| 213 | return ret; |
| 214 | } |
| 215 | /*! \brief Disable copy */ |
| 216 | FeatureGroup& operator=(const FeatureGroup&) = delete; |
| 217 | /*! \brief Deep copy */ |