! * \brief Get weights, if not exists, will return nullptr * \return Pointer of weights */
| 149 | * \return Pointer of weights |
| 150 | */ |
| 151 | inline const label_t* weights() const { |
| 152 | if (!weights_.empty()) { |
| 153 | return weights_.data(); |
| 154 | } else { |
| 155 | return nullptr; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | /*! |
| 160 | * \brief Get data boundaries on queries, if not exists, will return nullptr |